Skip to content

Commit

Permalink
Added headers for the docker cleanup tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
keithpitt committed Feb 13, 2015
1 parent 5c580b9 commit 846d7e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ else
DOCKER_IMAGE="buildkite_"$BUILDKITE_JOB_ID"_image"

function docker-cleanup {
echo "--- Cleaning up Docker containers"
buildkite-run "docker rm -f -v $DOCKER_CONTAINER"

# Enabling the following line will prevent your build server from filling up,
Expand Down Expand Up @@ -279,6 +280,7 @@ else
FIG_CONTAINER_NAME=$FIG_PROJ_NAME"_"$BUILDKITE_FIG_CONTAINER

function fig-cleanup {
echo "--- Cleaning up Fig Docker containers"
buildkite-run "fig -p $FIG_PROJ_NAME kill"
buildkite-run "fig -p $FIG_PROJ_NAME rm --force -v"

Expand Down

0 comments on commit 846d7e0

Please sign in to comment.