My longtime friend Don Park got this together. Many thanks to Don! ;-)
The first step is to get Docker running on your server.
I created a server on Digital Ocean and then followed their instructions for installing Docker. I was able to get the 1999 server to run on a $5 a month server. Not saying how well it will run, but it does run.
You need to have three bits of information available:
-
A domain name for the server.
-
Your Twitter consumer key, as explained in the docs for config.json.
-
The Twitter consumer secret.
Here's a command that launches the server with the HTTP server on port 80, and the websocket server on port 2000.
The domain name is oakland.myserver.com (it should point to this server, of course), the consumer key is 12345 and the secret is 67890.
sudo docker run -p 80:1999 -p 2000:2000 --name nodestorage -d --restart=unless-stopped \ -e "myDomain=oakland.myserver.com" \ -e "twitterConsumerKey=12345" \ -e "twitterConsumerSecret=67890" \ davew/nodestorage:latest
After running the command you should be able to access your server through http://oakland.myserver.com/.
sudo docker images -- list all the images you have installed on this machine
sudo docker ps -- list the containers
sudo docker stop nodestorage -- stop the nodestorage container
sudo docker rm nodestorage -- remove the nodestorage container
Amazon has a Docker service.
Here's a cheat sheet website for Docker commands.
CoreOS is a Linux distribution built around containers.
Here's the repository for the Docker version.
The JavaScript files are the same as the main project.
The only difference is there's a Dockerfile in the top level of the repo, and a docker folder with scripts and data.
The two projects are kept in sync by my build system.
Get help on the 1999-server mail list.