Clean up example; split new function image_parts
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user