Created
December 11, 2015 20:27
-
-
Save Humerus/d22e65e5d43fd9b42ea3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker rm shipyard shipyard-rethinkdb | |
docker pull shipyard/shipyard:3.0.2 | |
docker run -d --name shipyard-rethinkdb rethinkdb | |
SHIP_ID=$(docker run -itd --name shipyard --link shipyard-rethinkdb:rethinkdb -p 8080:8080 --restart=always shipyard/shipyard:3.0.2 server -d $DOCKER_HOST --tls-ca-cert=/ca.pem --tls-cert=/cert.pem --tls-key=/key.pem) | |
docker cp ca.pem $SHIP_ID:/ca.pem | |
docker cp cert.pem $SHIP_ID:/cert.pem | |
docker cp key.pem $SHIP_ID:/key.pem | |
docker kill $SHIP_ID | |
docker start $SHIP_ID | |
docker ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment