X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fdocker%2Fdclean.sh;h=867f4c6978fe1f482f53ce4ebefbf9101cc2aa70;hb=0d982409d8931d92e62c88414ece2c48ab5e4b52;hp=4fb4e07ab6cfb22775d474d1d25bf7e76485d20f;hpb=e36daf12cf4c5aa4b22fa3cec66a79ff2e2b8b94;p=aaf%2Fauthz.git diff --git a/auth/docker/dclean.sh b/auth/docker/dclean.sh index 4fb4e07a..867f4c69 100644 --- a/auth/docker/dclean.sh +++ b/auth/docker/dclean.sh @@ -22,8 +22,12 @@ . ./d.props DOCKER=${DOCKER:=docker} +if [ "$1" == "all" ]; then + AAF_COMPONENTS=cass + shift +fi if [ "$1" == "" ]; then - AAF_COMPONENTS="$(cat components) config core agent " + AAF_COMPONENTS="$(cat components) config core agent base " else AAF_COMPONENTS="$@" fi @@ -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