Skip to content

Continuous deployment step  #15

Description

@ilan-schemoul

I think the important part (that I've been struggling on for few weeks) is CONTINUOUS Deployment, it's not entirely shown here.
For me it would be after PUSHING to docker hub, to use docker-machine to create a machine with ssh driver, then docker stack deploy.
Unfortunately docker stack deploy I use in my step does NOT seem to use the dockercfg despite I put the dockercfg in steps and services !
command: /bin/bash -c "echo -e $PRIVATE_SSH_KEY > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa && chmod +x /opt/app/create-manager-machine.sh && cd /opt/app && sh /opt/app/create-manager-machine.sh"
with create-manager-machine.sh being #!/bin/sh docker-machine create --driver generic --generic-ip-address=198.211.127.192 --generic-ssh-key ~/.ssh/id_rsa worksheets-v2 docker-machine ssh worksheets-v2 "docker swarm init --advertise-addr=198.211.127.192" eval "$(docker-machine env worksheets-v2 --shell sh)" docker stack deploy --compose-file devops/docker-compose-prod.yml webapp --with-registry-auth gives image nitrobay/worksheets_v2:latest could not be accessed on a registry to record
its digest. Each node will access nitrobay/worksheets_v2:latest independently,
Proving that docker stack deploy does not use dockercfg

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions