blob: b943d08a43fbadaa1787d46560a1990283860ce7 [file] [log] [blame]
Sai Gandham67a6d892018-10-10 04:31:59 -05001#!/bin/bash
2# Pull in Variables from d.props
3. ./d.props
4DOCKER=${DOCKER:=docker}
5
6if [ "$1" == "" ]; then
7 AAF_COMPONENTS="$(cat components) config core agent"
8else
9 AAF_COMPONENTS="$@"
10fi
11
12echo "Y" | $DOCKER container prune
13for AAF_COMPONENT in ${AAF_COMPONENTS}; do
14 $DOCKER image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
15 if [ ! "$PREFIX" = "" ]; then
16 $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
17 $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest
18 fi
19done
20echo "Y" | $DOCKER image prune