Skip to content

Commit 7e86541

Browse files
authored
Merge pull request #3699 from tonistiigi/dockerfile-compose-v5.1.0
Dockerfile: update compose to 5.1.0
2 parents 6574d1b + 5478703 commit 7e86541

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ARG DOCKER_CLI_VERSION=${DOCKER_VERSION}
1212
ARG GOTESTSUM_VERSION=v1.13.0
1313
ARG REGISTRY_VERSION=3.0.0
1414
ARG BUILDKIT_VERSION=v0.27.1
15-
ARG COMPOSE_VERSION=v2.39.1
15+
ARG COMPOSE_VERSION=v5.1.0
1616
ARG UNDOCK_VERSION=0.9.0
1717

1818
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx

tests/integration.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,15 @@ func composeCmd(sb integration.Sandbox, opts ...cmdOpt) *exec.Cmd {
8383
opt(cmd)
8484
}
8585

86-
if builder := sb.Address(); builder != "" {
86+
builder := sb.Address()
87+
context := sb.DockerAddress()
88+
if builder != "" && builder != context {
8789
cmd.Env = append(cmd.Env,
8890
"BUILDX_CONFIG="+buildxConfig(sb),
8991
"BUILDX_BUILDER="+builder,
9092
)
9193
}
92-
if context := sb.DockerAddress(); context != "" {
94+
if context != "" {
9395
cmd.Env = append(cmd.Env, "DOCKER_CONTEXT="+context)
9496
}
9597
if v := os.Getenv("GO_TEST_COVERPROFILE"); v != "" {

0 commit comments

Comments
 (0)