blob: 4c2dd3bfc1741e0123bb764e389627dd2ca47fa2 [file] [log] [blame]
Instrumentaldf9e8272018-04-05 20:52:32 -05001#!/bin/bash dclean.sh
Sai Gandhamce6a67f2018-04-10 14:25:35 +00002ORG=onap
3PROJECT=aaf
4DOCKER_REPOSITORY=nexus3.onap.org:10003
5VERSION=2.1.0-SNAPSHOT
6./d.props
Instrumentaldf9e8272018-04-05 20:52:32 -05007
8if [ "$1" == "" ]; then
9 AAF_COMPONENTS=`ls ../aaf_${VERSION}/bin | grep -v '\.'`
10else
11 AAF_COMPONENTS=$1
12fi
13
14echo "Y" | docker container prune
15for AAF_COMPONENT in ${AAF_COMPONENTS}; do
16 docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
17done
18echo "Y" | docker image prune