- Docker Engine
- Docker Machine
- a DigitalOcean Personal Access Token
- Create a machine
I'll be naming my machine deploybot-demo
docker-machine create \
-d digitalocean \
--digitalocean-access-token $DO_TOKEN \
--digitalocean-image docker \
--digitalocean-region sgp1 \
--digitalocean-size 512mb \
deploybot-demo
Check if it works
eval $(docker-machine env deploybot-demo)
docker info
-
Sign up for DeployBot
-
Connect a repository
You can fork this repository to try it out
-
Create an environment
-
Add a server
Choose the Atomic DigitalOcean deployment option
SSH to the machine
docker-machine ssh deploybot-demo
Copy commands to allow DeployBot to access the machine
Install docker-compose
(optional)
curl -L https://github.com/docker/compose/releases/download/1.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
And were're done!
If you used this repository, you should be able to see a message
upon visiting http://$(docker-machine ip deploybot-demo)