X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fdocker%2Fdclean.sh;h=867f4c6978fe1f482f53ce4ebefbf9101cc2aa70;hb=HEAD;hp=0e974aa6c918830be949e43e45ae8776c9474154;hpb=5b54d6757019e5dc6ff7b8a42078aa7d5ba0fd6d;p=aaf%2Fauthz.git diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh index 0e974aa6..867f4c69 100644 --- a/auth/docker/dclean.sh +++ b/auth/docker/dclean.sh @@ -22,6 +22,10 @@ . ./d.props DOCKER=${DOCKER:=docker} +if [ "$1" == "all" ]; then + AAF_COMPONENTS=cass + shift +fi if [ "$1" == "" ]; then AAF_COMPONENTS="$(cat components) config core agent base " else @@ -36,4 +40,5 @@ for AAF_COMPONENT in ${AAF_COMPONENTS}; do $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest fi done + echo "Y" | $DOCKER image prune