mirror of
https://github.com/docker/compose.git
synced 2026-08-31 14:52:42 +00:00
TestBuildDependsOn, Subset, DependentImage, SubDependencies, LongOutputLine, DependentImageWithProfile, Escaped, Tags and Secrets become scenarios: models inline (the long-line Dockerfile generated with strings.Repeat instead of 34 copy-pasted lines), image names project-scoped with Defer cleanup, and the secrets build asserts ImageExists on top of the Dockerfile's own diff checks. Kept legacy: TestLocalComposeBuild (DOCKER_BUILDKIT=0/1 matrix over a shared fixture with fixed names and host port), the buildx-builder family (SSH, platforms, privileged, entitlements, builder, TLS) which provisions builders and dind daemons, and TestBuildImageDependencies (classic/bake matrix). Their fixtures under build-test/ stay; the single-purpose subdirectories are removed. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
36 lines
750 B
YAML
36 lines
750 B
YAML
services:
|
|
main:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM alpine
|
|
additional_contexts:
|
|
dep1: service:dep1
|
|
dep2: service:dep2
|
|
entrypoint: ["echo", "Hello from main"]
|
|
|
|
dep1:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM alpine
|
|
additional_contexts:
|
|
subdep1: service:subdep1
|
|
subdep2: service:subdep2
|
|
entrypoint: ["echo", "Hello from dep1"]
|
|
|
|
dep2:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM alpine
|
|
entrypoint: ["echo", "Hello from dep2"]
|
|
|
|
subdep1:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM alpine
|
|
entrypoint: ["echo", "Hello from subdep1"]
|
|
|
|
subdep2:
|
|
build:
|
|
dockerfile_inline: |
|
|
FROM alpine
|
|
entrypoint: ["echo", "Hello from subdep2"]
|