Skip to content

Instantly share code, notes, and snippets.

@musghost
Last active August 31, 2015 23:29
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 musghost/ed03d9aa7e6421a6e1fc to your computer and use it in GitHub Desktop.
Save musghost/ed03d9aa7e6421a6e1fc to your computer and use it in GitHub Desktop.
ERR=0
IP=$(sudo docker inspect -f jenkins_identidock_1)
CODE=$(curl -sL -w "%{http_code}" $IP:9090 -o /dev/null) || true if [ $CODE -ne 200 ]; then
echo "Site returned " $CODE
ERR=1 fi
#Pull down the system
sudo docker-compose $COMPOSE_ARGS stop
sudo docker-compose $COMPOSE_ARGS rm --force -v
return $ERR
docker run -d --name jenkins -p 8080:8080 --volumes-from jenkins-data -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker identijenk
https://docs.google.com/presentation/d/1ffiZECiCO_dub78PB-UdATeYu12JRIXoRBj0w2nRdcE/edit#slide=id.g65d7fa6fa_0_28
https://docs.google.com/presentation/d/1A3DfPOkVjfYkg4I1aLRRPI3EP0StJ8XEjuDmxyEHvfo/edit#slide=id.g59a05ea69_0_73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment