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 | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 6 | AAF_COMPONENTS=$(ls ../aaf_${VERSION}/bin | grep -v '\.') |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 7 | else |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 8 | AAF_COMPONENTS=$1 |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 9 | fi |
| 10 | |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 11 | docker image rm $ORG/$PROJECT/aaf_config:${VERSION} |
Instrumental | 9ec2895 | 2018-07-12 11:14:10 -0500 | [diff] [blame] | 12 | docker image rm $ORG/$PROJECT/aaf_core:${VERSION} |
| 13 | |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 14 | echo "Y" | docker container prune |
| 15 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
Instrumental | 4ad4763 | 2018-07-13 15:49:26 -0500 | [diff] [blame] | 16 | docker image rm $ORG/$PROJECT/aaf_$AAF_COMPONENT:${VERSION} |
Instrumental | df9e827 | 2018-04-05 20:52:32 -0500 | [diff] [blame] | 17 | done |
| 18 | echo "Y" | docker image prune |