Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Instrumental | 12f7f46 | 2018-04-23 15:43:47 -0500 | [diff] [blame] | 2 | # Pull in Variables from d.props |
| 3 | . ./d.props |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 4 | |
| 5 | if [ "$1" == "" ]; then |
Instrumental | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 6 | AAF_COMPONENTS="$(cat components) config core agent" |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 7 | else |
Instrumental | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 8 | AAF_COMPONENTS="$@" |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 9 | fi |
| 10 | |
Instrumental | 32cdd55 | 2018-07-19 13:29:32 -0500 | [diff] [blame] | 11 | docker image rm $ORG/$PROJECT/aaf_agent:${VERSION} |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 12 | docker image rm $ORG/$PROJECT/aaf_config:${VERSION} |
Instrumental | 9ec2895 | 2018-07-12 11:14:10 -0500 | [diff] [blame] | 13 | docker image rm $ORG/$PROJECT/aaf_core:${VERSION} |
| 14 | |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 15 | echo "Y" | docker container prune |
| 16 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 17 | docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} |
Instrumental | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 18 | 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 |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 22 | done |
| 23 | echo "Y" | docker image prune |