fvp-docker-images/builders.sh: After pushing image, remove it locally
We build more and more FVP docker images, and getting out of space. Just
increasing disk space (and that would be AWS AMI on which the build process
takes place) doesn't scale, because we can still build even more images
going forward. Instead, let's try to clean up after each imaeg build
iteration, and see how that goes.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Iaedbb4197852f7e54b5a06d9c6c593a29d636bd3
diff --git a/fvp-docker-images/builders.sh b/fvp-docker-images/builders.sh
index 8ba3714..56b8e99 100644
--- a/fvp-docker-images/builders.sh
+++ b/fvp-docker-images/builders.sh
@@ -37,6 +37,8 @@
echo "Docker image created"
echo "Docker image name: fvp:${tag}"
docker push $ECR/fvp:$tag
+ # Remove image locally to free up space for the remaining images in loop
+ docker image rm $ECR/fvp:$tag
)
done