Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

digital-ocean deploy #180

Open
rizplate opened this issue Sep 13, 2018 · 1 comment
Open

digital-ocean deploy #180

rizplate opened this issue Sep 13, 2018 · 1 comment

Comments

@rizplate
Copy link

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?

@rizplate rizplate changed the title digitalocean deploy digital-ocean deploy Sep 13, 2018
@renskiy
Copy link
Owner

renskiy commented Sep 13, 2018

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=['[email protected]:2222'],
    destroy_command=True,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants