This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 GOVERSION : " 1.7"
1010 GOPATH : " $HOME/.go_workspace"
1111 WORKDIR : " $GOPATH/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME"
12+ DOCKER_RM : " false"
1213
1314dependencies :
1415 pre :
Original file line number Diff line number Diff line change @@ -10,10 +10,14 @@ cd "$HERE/.."
1010TEST_DIR=$( pwd) /container-test
1111DOCKER_IMAGE=" ${DOCKER_IMAGE:- infrakit/ devbundle} "
1212DOCKER_TAG=" ${DOCKER_TAG:- dev} "
13+ DOCKER_RM=" ${DOCKER_RM:- true} "
1314
1415cleanup () {
15- docker ps | grep devbundle | awk ' {print $1}' | xargs docker stop
16- docker ps | grep devbundle | awk ' {print $1}' | xargs docker rm
16+ if [ " $DOCKER_RM " = " true" ]; then
17+ echo " cleaning up docker images"
18+ docker ps | grep devbundle | awk ' {print $1}' | xargs docker stop
19+ docker ps | grep devbundle | awk ' {print $1}' | xargs docker rm
20+ fi
1721 rm -rf $TEST_DIR
1822}
1923trap cleanup EXIT
You can’t perform that action at this time.
0 commit comments