Clean up example; split new function image_parts

This commit is contained in:
Joe
2021-05-06 15:28:22 -05:00
parent 2c05bfe4f8
commit 9f953b7ab3
2 changed files with 47 additions and 33 deletions

View File

@@ -3,11 +3,21 @@
pushd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null
# Build example image
echo "Rebuilding docker image for example"
printf 'FROM busybox \n RUN mkdir app && echo "Hello World!" > /app/testfile.txt' | docker build -t infogulch/artifact-test - &> /dev/null
echo "Rebuilding docker image infogulch/artifact-test"
printf 'FROM busybox \n RUN mkdir app && echo "Hello World!" > /app/testfile.txt' | docker build -t infogulch/artifact-test -
# Execute docker artifact to add a label that identifies /app/testfile.txt
echo ""
echo "Labeling /app/testfile.txt in infogulch/artifact-test"
../docker-artifact.sh artifact label infogulch/artifact-test /app/testfile.txt
echo ""
echo "Pushing image infogulch/artifact-test"
docker push infogulch/artifact-test
echo ""
echo "Listing files in infogulch/artifact-test"
../docker-artifact.sh artifact ls infogulch/artifact-test
popd &> /dev/null