Skip to content

Commit

Permalink
build.sh: print the squashed image ID to stdout
Browse files Browse the repository at this point in the history
Now the output would look like:
...
Successfully built 145d36ab3a06
Squashing the image '145d36ab3a06' from 'centos/s2i-base-centos7' layer.
Squashed as '4f52ad3cc7ef1f19951f9b6a147823fe5ea4a4baea3a70627385fc04bb78f73d'.
...

Fixes: sclorg#103
  • Loading branch information
praiskup authored and pkubatrh committed Dec 7, 2018
1 parent e175c02 commit f24c2e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ squash ()

base=$(awk '/^FROM/{print $2}' "$1")

echo "Squashing the image '$unsquashed' from '$base' layer"
echo "Squashing the image '$unsquashed' from '$base' layer."
IMAGE_ID=$("${PYTHON-python3}" "$script_dir"/squash.py "$unsquashed" "$base")

echo "Squashed as '$IMAGE_ID'."

echo "$unsquashed" > .image-id.squashed_from
echo "$IMAGE_ID" > .image-id.squashed
}
Expand Down

0 comments on commit f24c2e9

Please sign in to comment.