Open rizplate opened 6 years ago
Vagrant
is only needed to start live examples on a localhost. To deploy containers and services to remote servers (including cloud infrastructure) you do not need it.
Fabricio
can deploy to anywhere. The only thing you need to is an SSH access to your remote server(s). For example, if you have SSH access for your server example.com
(using 2222 port and admin
user) and want to start container on it using image from hub.docker.com, then you can use this example. Just set your own hosts instead of AvailableVagrantHosts()
:
from fabricio import tasks, docker
nginx = tasks.DockerTasks(
service=docker.Container(
name='nginx-container',
image='nginx:stable-alpine',
options=dict(
publish='80:80',
),
),
hosts=['admin@example.com:2222'],
destroy_command=True,
)
why is vagrant needed? can I deploy it without it i.e. to digital ocean?
can you please add documentation or example on how to deploy docker image from docker-hub to digital ocean?