Skip to content

Commit

Permalink
buildkite: Make docker image builds more quiet
Browse files Browse the repository at this point in the history
The docker image build scripts generate a *lot* of docker output noise.
In an effort to reduce it, this update adds "quiet" flag to pulls, and
sets "progress" to "plain" on builds.

Change-Id: I30aa89d62b53d5146877b570a3db99ce288991ac
  • Loading branch information
ronh-rs committed Jan 9, 2025
1 parent e46ca21 commit 4189ba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .buildkite/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [ -n "${SKIP_IF_UNCHANGED+1}" ]; then
fi

echo "--- :docker: Pulling $image:latest"
if docker pull "$image:latest"; then
if docker pull --quiet "$image:latest"; then
cache_from="--cache-from=$image:latest"
else
echo "Failed to pull previous build of image"
Expand All @@ -77,6 +77,7 @@ build_cmd_prefix=(
"docker" "build" \
"-f" "$dockerfile" \
"-t" "$image:$VERSION" \
"--progress" "plain" \
"--build-arg" "BUILDKIT_INLINE_CACHE=1" \
)
build_cmd_suffix=(
Expand Down

0 comments on commit 4189ba1

Please sign in to comment.