Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Dec 19, 2023
1 parent 19091c1 commit 1b56dae
Showing 1 changed file with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1361,23 +1361,15 @@ func (manager *DockerManager) BuildImage(ctx context.Context, imageName string,
ShmSize: 0,
Dockerfile: defaultContainerImageFile,
Ulimits: []*units.Ulimit{},
// BuildArgs needs to be a *string instead of just a string so that
// we can tell the difference between "" (empty string) and no value
// at all (nil). See the parsing of buildArgs in
// api/server/router/build/build_routes.go for even more info.
BuildArgs: map[string]*string{},
AuthConfigs: map[string]registry.AuthConfig{},
Context: containerImageFileTarReader,
BuildArgs: map[string]*string{},
AuthConfigs: map[string]registry.AuthConfig{},
Context: containerImageFileTarReader,
// 0.0.0 label is a hack so that images by internal testsuite are cleaned up by kurtosis clean/PruneUnusedImages
Labels: map[string]string{},
// squash the resulting image's layers to the parent
// preserves the original image and creates a new one from the parent with all
// the changes applied to a single layer
Squash: false, // this will probably make image building faster
// CacheFrom specifies images that are used for matching cache. Images
// specified here do not need to have a valid parent chain to match cache.
Squash: false,
CacheFrom: []string{},
SecurityOpt: []string{},
ExtraHosts: []string{}, // List of extra hosts
ExtraHosts: []string{},
Target: imageBuildSpec.GetTargetStage(),
SessionID: buildkitSession.ID(),
Platform: "",
Expand Down

0 comments on commit 1b56dae

Please sign in to comment.