Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 1 | #!/bin/bash dclean.sh |
Sai Gandham | ce6a67f | 2018-04-10 14:25:35 +0000 | [diff] [blame] | 2 | ORG=onap |
| 3 | PROJECT=aaf |
| 4 | DOCKER_REPOSITORY=nexus3.onap.org:10003 |
| 5 | VERSION=2.1.0-SNAPSHOT |
| 6 | ./d.props |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 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 |