blob: d83a13298b6675555d384f83313aa5846543c6c2 [file] [log] [blame]
Instrumental4ad47632018-07-13 15:49:26 -05001#!/bin/bash
Instrumental12f7f462018-04-23 15:43:47 -05002# Pull in Variables from d.props
3. ./d.props
Instrumentaldf9e8272018-04-05 20:52:32 -05004
5if [ "$1" == "" ]; then
Instrumentale44d2f72018-08-16 17:22:45 -05006 AAF_COMPONENTS="$(cat components) config core agent"
Instrumentaldf9e8272018-04-05 20:52:32 -05007else
Instrumentale44d2f72018-08-16 17:22:45 -05008 AAF_COMPONENTS="$@"
Instrumentaldf9e8272018-04-05 20:52:32 -05009fi
10
Instrumental32cdd552018-07-19 13:29:32 -050011docker image rm $ORG/$PROJECT/aaf_agent:${VERSION}
Instrumental4ad47632018-07-13 15:49:26 -050012docker image rm $ORG/$PROJECT/aaf_config:${VERSION}
Instrumental9ec28952018-07-12 11:14:10 -050013docker image rm $ORG/$PROJECT/aaf_core:${VERSION}
14
Instrumentaldf9e8272018-04-05 20:52:32 -050015echo "Y" | docker container prune
16for AAF_COMPONENT in ${AAF_COMPONENTS}; do
Instrumental4ad47632018-07-13 15:49:26 -050017 docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
Instrumentale44d2f72018-08-16 17:22:45 -050018 if [ "$PREFIX" = "" ]; then
19 docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION}
20 docker image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest
21 fi
Instrumentaldf9e8272018-04-05 20:52:32 -050022done
23echo "Y" | docker image prune