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 | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 4 | DOCKER=${DOCKER:=docker} |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 5 | |
| 6 | if [ "$1" == "" ]; then |
Instrumental | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 7 | AAF_COMPONENTS="$(cat components) config core agent" |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 8 | else |
Instrumental | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 9 | AAF_COMPONENTS="$@" |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 10 | fi |
| 11 | |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 12 | echo "Y" | $DOCKER container prune |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 13 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 14 | $DOCKER image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} |
Instrumental | 235dd9a | 2018-10-03 21:36:44 -0500 | [diff] [blame] | 15 | if [ ! "$PREFIX" = "" ]; then |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 16 | $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} |
| 17 | $DOCKER image rm $DOCKER_REPOSITORY/$ORG/$PROJECT/aaf_$AAF_COMPONENT:latest |
Instrumental | e44d2f7 | 2018-08-16 17:22:45 -0500 | [diff] [blame] | 18 | fi |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 19 | done |
Instrumental | 9405361 | 2018-10-08 11:27:18 -0500 | [diff] [blame] | 20 | echo "Y" | $DOCKER image prune |