diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-10-08 11:27:18 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-10-08 11:28:00 -0500 |
commit | 94053613671f7456ea5114a8421d0e6868bdbba0 (patch) | |
tree | f81e1585e9b9e76dd74a0c8381926ed7b1c6e8be /auth/docker/dclean.sh | |
parent | 49525303bc07064d60b3dde3056b2e9e8a379435 (diff) |
Artifacts to Bootstrap
Issue-ID: AAF-543
Change-Id: I95d11b11c21ddeb63e393528c2504af673d27a6f
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/docker/dclean.sh')
-rw-r--r-- | auth/docker/dclean.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh index f8550674..b943d08a 100644 --- a/auth/docker/dclean.sh +++ b/auth/docker/dclean.sh @@ -1,6 +1,7 @@ #!/bin/bash # Pull in Variables from d.props . ./d.props +DOCKER=${DOCKER:=docker} if [ "$1" == "" ]; then AAF_COMPONENTS="$(cat components) config core agent" @@ -8,12 +9,12 @@ else AAF_COMPONENTS="$@" fi -echo "Y" | docker container prune +echo "Y" | $DOCKER container prune for AAF_COMPONENT in ${AAF_COMPONENTS}; do - docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} + $DOCKER image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} if [ ! "$PREFIX" = "" ]; then - docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} - docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest + $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} + $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest fi done -echo "Y" | docker image prune +echo "Y" | $DOCKER image prune |