Created
June 25, 2015 23:44
-
-
Save epintos/af72b612bebb7ef2fad7 to your computer and use it in GitHub Desktop.
Ruby on Rails Continuous Integration with Jenkins and Docker Compose
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 +x | |
docker-compose --project-name=${JOB_NAME} stop &> /dev/null || true &> /dev/null | |
docker-compose --project-name=${JOB_NAME} rm --force &> /dev/null || true &> /dev/null | |
docker stop `docker ps -a -q -f status=exited` &> /dev/null || true &> /dev/null | |
docker rm -v `docker ps -a -q -f status=exited` &> /dev/null || true &> /dev/null | |
docker rmi `docker images --filter 'dangling=true' -q --no-trunc` &> /dev/null || true &> /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment