Skip to content

Commit

Permalink
Use Container.AsService() with instead of Container struct WithServic…
Browse files Browse the repository at this point in the history
…eBinding()
  • Loading branch information
adamyeats committed Jan 5, 2024
1 parent d64dbcd commit 2fadd6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func startGrafana(client *dagger.Client, clickHouseDist *dagger.Directory, click
From("grafana/grafana:main").
WithFile("/etc/grafana/grafana.ini", client.Host().File("e2e/custom.ini")).
WithMountedDirectory("/var/lib/grafana/plugins/clickhouse-datasource", clickHouseDist).
WithServiceBinding("clickhouse", clickhouseContainer).
WithServiceBinding("clickhouse", clickhouseContainer.AsService()).
WithExposedPort(3000)

fmt.Println("Grafana built")
Expand All @@ -183,7 +183,7 @@ func runK6(client *dagger.Client, ctx context.Context, grafanaContainer *dagger.
value, err := client.
Container().
From("grafana/k6:master-with-browser").
WithServiceBinding("grafana", grafanaContainer).
WithServiceBinding("grafana", grafanaContainer.AsService()).
WithEnvVariable("K6_BROWSER_ARGS", "no-sandbox").
WithFile("k6.test.js", testFile).
WithExec([]string{"run", "k6.test.js"}, dagger.ContainerWithExecOpts{InsecureRootCapabilities: true}).Stderr(ctx)
Expand Down

0 comments on commit 2fadd6b

Please sign in to comment.