Skip to content

Instantly share code, notes, and snippets.

@herpiko
Created August 4, 2017 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herpiko/bd422894c0bb509b8deaa7bc1f98abe1 to your computer and use it in GitHub Desktop.
Save herpiko/bd422894c0bb509b8deaa7bc1f98abe1 to your computer and use it in GitHub Desktop.
Orcinus deploy script
IP=$1
docker service rm $(docker service ls -q)
docker rm $(docker ps -aq)
yes | docker network prune
docker swarm leave --force
orcinus cluster init $IP
docker network create --driver overlay orcinus
cd orcinus/deploy/dashboard
orcinus create
cd ../../..
cd orcinus/deploy/db
orcinus create
cd ../../..
cd orcinus/deploy/repository-custom
orcinus create
cd ../../..
cd orcinus/deploy/webserver
orcinus create
cd ../../..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment