Merge pull request #3699 from tonistiigi/dockerfile-compose-v5.1.0
Dockerfile: update compose to 5.1.0
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ ARG DOCKER_CLI_VERSION=${DOCKER_VERSION}
|
||||
ARG GOTESTSUM_VERSION=v1.13.0
|
||||
ARG REGISTRY_VERSION=3.0.0
|
||||
ARG BUILDKIT_VERSION=v0.27.1
|
||||
ARG COMPOSE_VERSION=v2.39.1
|
||||
ARG COMPOSE_VERSION=v5.1.0
|
||||
ARG UNDOCK_VERSION=0.9.0
|
||||
|
||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
|
||||
|
||||
@@ -83,13 +83,15 @@ func composeCmd(sb integration.Sandbox, opts ...cmdOpt) *exec.Cmd {
|
||||
opt(cmd)
|
||||
}
|
||||
|
||||
if builder := sb.Address(); builder != "" {
|
||||
builder := sb.Address()
|
||||
context := sb.DockerAddress()
|
||||
if builder != "" && builder != context {
|
||||
cmd.Env = append(cmd.Env,
|
||||
"BUILDX_CONFIG="+buildxConfig(sb),
|
||||
"BUILDX_BUILDER="+builder,
|
||||
)
|
||||
}
|
||||
if context := sb.DockerAddress(); context != "" {
|
||||
if context != "" {
|
||||
cmd.Env = append(cmd.Env, "DOCKER_CONTEXT="+context)
|
||||
}
|
||||
if v := os.Getenv("GO_TEST_COVERPROFILE"); v != "" {
|
||||
|
||||
Reference in New Issue
Block a user