Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for BuildKit when building images #416

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ type BuildImageOptions struct {
CgroupParent string `qs:"cgroupparent"`
SecurityOpt []string `qs:"securityopt"`
Target string `gs:"target"`
Version string `qs:"version"`
Platform string `qs:"platform" ver:"1.32"`
Outputs string `qs:"outputs" ver:"1.40"`
ExtraHosts string `qs:"extrahosts" ver:"1.28"`
Expand Down
5 changes: 4 additions & 1 deletion dockertest.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,9 @@ type BuildOptions struct {
ContextDir string
BuildArgs []dc.BuildArg
Platform string
Auth dc.AuthConfigurations
// Version specifies the builder to use. "1" for classic, "2" for BuildKit
Version string
Auth dc.AuthConfigurations
}

// BuildAndRunWithBuildOptions builds and starts a docker container.
Expand All @@ -344,6 +346,7 @@ func (d *Pool) BuildAndRunWithBuildOptions(buildOpts *BuildOptions, runOpts *Run
ContextDir: buildOpts.ContextDir,
BuildArgs: buildOpts.BuildArgs,
Platform: buildOpts.Platform,
Version: buildOpts.Version,
AuthConfigs: buildOpts.Auth,
})

Expand Down
Loading