From 2fadd6b7389808b70b99539c7c2a81146d762cbc Mon Sep 17 00:00:00 2001 From: Adam Yeats Date: Fri, 5 Jan 2024 18:36:17 +0100 Subject: [PATCH] Use Container.AsService() with instead of Container struct WithServiceBinding() --- e2e/e2e_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 2497f1cf..a27de4d9 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -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") @@ -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)