MCPcopy Create free account
hub / github.com/buildpacks/pack / createStackImage

Function createStackImage

acceptance/acceptance_test.go:4175–4186  ·  view source on GitHub ↗
(dockerCli *client.Client, repoName string, dir string)

Source from the content-addressed store, hash-verified

4173}
4174
4175func createStackImage(dockerCli *client.Client, repoName string, dir string) error {
4176 defaultFilterFunc := func(file string) bool { return true }
4177
4178 ctx := context.Background()
4179 buildContext := archive.ReadDirAsTar(dir, "/", 0, 0, -1, true, false, defaultFilterFunc)
4180
4181 return h.CheckImageBuildResult(dockerCli.ImageBuild(ctx, buildContext, client.ImageBuildOptions{
4182 Tags: []string{repoName},
4183 Remove: true,
4184 ForceRemove: true,
4185 }))
4186}
4187
4188func createFlattenBuilder(
4189 t *testing.T,

Callers 1

createStackFunction · 0.85

Calls 2

ReadDirAsTarFunction · 0.92
ImageBuildMethod · 0.45

Tested by

no test coverage detected