MCPcopy Index your code
hub / github.com/dagger/dagger / engineClientContainer

Function engineClientContainer

core/integration/engine_test.go:141–152  ·  view source on GitHub ↗
(ctx context.Context, t *testctx.T, c *dagger.Client, devEngine *dagger.Service)

Source from the content-addressed store, hash-verified

139}
140
141func engineClientContainer(ctx context.Context, t *testctx.T, c *dagger.Client, devEngine *dagger.Service) *dagger.Container {
142 daggerCli := daggerCliFile(t, c)
143
144 cliBinPath := "/bin/dagger"
145 endpoint, err := devEngine.Endpoint(ctx, dagger.ServiceEndpointOpts{Port: 1234, Scheme: "tcp"})
146 require.NoError(t, err)
147 return c.Container().From(alpineImage).
148 WithServiceBinding("dev-engine", devEngine).
149 WithMountedFile(cliBinPath, daggerCli).
150 WithEnvVariable("_EXPERIMENTAL_DAGGER_CLI_BIN", cliBinPath).
151 WithEnvVariable("_EXPERIMENTAL_DAGGER_RUNNER_HOST", endpoint)
152}
153
154// withNonNestedDevEngine configures a Container to use the same dev engine
155// as the tests are running against but while avoiding use of a nested exec.

Calls 7

daggerCliFileFunction · 0.85
EndpointMethod · 0.45
WithEnvVariableMethod · 0.45
WithMountedFileMethod · 0.45
WithServiceBindingMethod · 0.45
FromMethod · 0.45
ContainerMethod · 0.45

Tested by

no test coverage detected