Skip to content

Commit

Permalink
Merge pull request #124918 from cockroachdb/blathers/backport-release…
Browse files Browse the repository at this point in the history
…-23.2-124876

release-23.2: acceptance: use `docker compose` (part 2)
  • Loading branch information
rail authored May 31, 2024
2 parents 24ce7f6 + be77e6d commit 2982a0a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 0 additions & 1 deletion pkg/acceptance/compose/flyway/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
cockroach:
image: ubuntu:xenial-20210804
Expand Down
1 change: 0 additions & 1 deletion pkg/acceptance/compose/gss/docker-compose-python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
kdc:
image: us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-kdc:20221214-131000
Expand Down
1 change: 0 additions & 1 deletion pkg/acceptance/compose/gss/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
kdc:
image: us-east1-docker.pkg.dev/crl-ci-images/cockroach/acceptance-gss-kdc:20221214-131000
Expand Down
9 changes: 7 additions & 2 deletions pkg/acceptance/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ func testCompose(t *testing.T, path string, exitCodeFrom string) {
t.Fatalf(err.Error())
}
cmd := exec.Command(
"docker-compose",
"--no-ansi",
"docker",
"compose",
// NB: Using --compatibility here in order to preserve compose V1 hostnames
// (with underscores) instead of V2 hostnames (with -), because the
// hostnames are hardcoded in the Kerberos keys.
"--compatibility",
"--ansi=never",
"-f", path,
"up",
"--force-recreate",
Expand Down
1 change: 0 additions & 1 deletion pkg/compose/compare/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '3'
services:
cockroach1:
image: ubuntu:xenial-20170214
Expand Down
2 changes: 1 addition & 1 deletion pkg/compose/compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func TestComposeCompare(t *testing.T) {
"docker",
"compose",
"-f", dockerComposeYml,
"--no-ansi",
"--ansi=never",
"up",
"--force-recreate",
"--exit-code-from", "test",
Expand Down

0 comments on commit 2982a0a

Please sign in to comment.