Skip to content

Commit

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

Change-Id: I30aa89d62b53d5146877b570a3db99ce288991ac
  • Loading branch information
ronh-rs committed Jan 10, 2025
1 parent e46ca21 commit b9f6be6
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 b9f6be6

Please sign in to comment.