Skip to content

fix(ci): enable BuildKit for Docker builds - #505

Merged
erikcurrin-elastic merged 1 commit into
mainfrom
fix/enable-buildkit-in-docker-build
Sep 18, 2026
Merged

erikcurrin-elastic merged 1 commit into
mainfrom
fix/enable-buildkit-in-docker-build

Conversation

@erikcurrin-elastic

Copy link
Copy Markdown
Contributor

Summary

COPY --chmod=... in Dockerfile.wolfi requires BuildKit, but build-docker.sh was calling plain docker build without enabling it, causing every build to fail at step 15:

the --chmod option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/

Fix

Prefix the docker build call with DOCKER_BUILDKIT=1.

Verification

Confirmed working in build #80 by setting the env var manually at trigger time.

🤖 Generated with Claude Code

@erikcurrin-elastic
erikcurrin-elastic requested a review from a team as a code owner September 18, 2026 19:46
COPY --chmod= in Dockerfile.wolfi requires BuildKit. Without
DOCKER_BUILDKIT=1 the build fails at step 15 with:
  the --chmod option requires BuildKit

Verified working in build #80 with the env var set manually.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

@seanstory seanstory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

rubberstamp

@erikcurrin-elastic
erikcurrin-elastic force-pushed the fix/enable-buildkit-in-docker-build branch from fe9b116 to 873daec Compare September 18, 2026 19:49
@erikcurrin-elastic
erikcurrin-elastic enabled auto-merge (squash) September 18, 2026 19:51
@erikcurrin-elastic
erikcurrin-elastic merged commit f79400e into main Sep 18, 2026
2 checks passed
@erikcurrin-elastic
erikcurrin-elastic deleted the fix/enable-buildkit-in-docker-build branch September 18, 2026 19:56
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

💚 Backport PR(s) successfully created

Status Branch Result
✅ 1.0 #512

This backport PR will be merged automatically after passing CI.

Jan-Kazlouski-elastic pushed a commit that referenced this pull request Oct 5, 2026
Backports the following commits to 1.0:
 - fix(ci): enable BuildKit for Docker builds (#505)

Co-authored-by: Erik Currin <erik.currin@elastic.co>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants