changed to unmaintained
[aaf/authz.git] / auth / docker / dclean.sh
1 #!/bin/bash dclean.sh
2 ORG=onap
3 PROJECT=aaf
4 DOCKER_REPOSITORY=nexus3.onap.org:10003
5 VERSION=2.1.0-SNAPSHOT
6 ./d.props
7
8 if [ "$1" == "" ]; then
9   AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'`
10 else
11   AAF_COMPONENTS=$1
12 fi
13
14 echo "Y" | docker container prune
15 for AAF_COMPONENT in ${AAF_COMPONENTS}; do
16   docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
17 done
18 echo "Y" | docker image prune