Skip to content

fix(build): enable BuildKit in cloudbuild-omni.yaml for --mount support - #1484

Merged
ptone merged 1 commit into
GoogleCloudPlatform:mainfrom
ptone:scion/omni-buildkit-fix
Sep 7, 2026
Merged

fix(build): enable BuildKit in cloudbuild-omni.yaml for --mount support#1484
ptone merged 1 commit into
GoogleCloudPlatform:mainfrom
ptone:scion/omni-buildkit-fix

Conversation

@ptone

@ptone ptone commented Sep 7, 2026

Copy link
Copy Markdown
Member

The omni cloudbuild config uses plain docker build (not docker buildx build) because it chains images through the local daemon. Upstream harnesses/claude/Dockerfile now uses RUN --mount=type=secret which requires BuildKit. All other cloudbuild configs use buildx (which has BuildKit built-in). Fix: add DOCKER_BUILDKIT=1 env var to all 8 build steps. Fixes ptone#1453.

The omni cloudbuild config uses plain `docker build` (not `docker buildx
build`) because it chains images through the local daemon. The upstream
harnesses/claude/Dockerfile now uses `RUN --mount=type=secret`, which
requires BuildKit. This causes Stage 3 (build-scion-claude) to fail with
"the --mount option requires BuildKit."

Add `DOCKER_BUILDKIT=1` env var to all 8 docker build steps to enable
BuildKit with the legacy builder. The `required=false` on the secret
mount means no `--secret` flag is needed at build time. Applied to all
stages (not just Stage 3) for consistency and to prevent the same failure
when other Dockerfiles adopt `--mount`.
@google-cla

google-cla Bot commented Sep 7, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Cloud Build configuration in image-build/cloudbuild-omni.yaml by enabling Docker BuildKit (DOCKER_BUILDKIT=1) across all build stages (Stages 1 through 8). There are no review comments, and I have no feedback to provide.

@ptone
ptone merged commit 9475172 into GoogleCloudPlatform:main Sep 7, 2026
10 of 12 checks passed
@ptone
ptone deleted the scion/omni-buildkit-fix branch September 7, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(build): enable BuildKit in cloudbuild-omni.yaml for --mount support

1 participant