mirror of
https://github.com/docker/compose.git
synced 2026-11-17 21:57:19 +00:00
The e2e framework (framework.go, scenario.go, checks.go, assert.go) and the e2e tests lived under pkg/e2e, so the framework was published as part of the public /v5 API although it is only test support code. Move it to internal/e2e. This is a pure move: the files keep their content, only the references to the old path (Makefile, .golangci.yml, codecov.yml, .gitignore, AGENTS.md and SCENARIO.md) are updated. internal/e2e is at the same depth as pkg/e2e, so the relative paths to bin/, relay/ and testdata keep working. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
77 lines
1.8 KiB
YAML
77 lines
1.8 KiB
YAML
services:
|
|
# Baseline: deploy.resources/replicas/restart_policy ARE honored outside
|
|
# Swarm, a port without an explicit mode defaults to mode: ingress, and
|
|
# label_file is resolved into real labels by compose-go's loader by
|
|
# default — none of these must ever produce a warning.
|
|
clean:
|
|
image: alpine
|
|
deploy:
|
|
replicas: 2
|
|
resources:
|
|
limits:
|
|
cpus: "0.50"
|
|
memory: 128M
|
|
restart_policy:
|
|
condition: on-failure
|
|
ports:
|
|
- "9090:90"
|
|
label_file:
|
|
- ./labels.env
|
|
|
|
# Every deploy.* sub-attribute that's silently ignored outside Swarm.
|
|
swarm-attrs:
|
|
image: alpine
|
|
credential_spec:
|
|
file: ./creds.json
|
|
deploy:
|
|
mode: replicated
|
|
labels:
|
|
team: backend
|
|
update_config:
|
|
parallelism: 1
|
|
failure_action: rollback
|
|
rollback_config:
|
|
parallelism: 1
|
|
placement:
|
|
constraints:
|
|
- node.role==manager
|
|
endpoint_mode: vip
|
|
|
|
# ports[].mode: host is Swarm-only.
|
|
ports-demo:
|
|
image: alpine
|
|
ports:
|
|
- target: 80
|
|
published: "8080"
|
|
mode: host
|
|
|
|
# volumes[].type: cluster (CSI) has no effect outside Swarm.
|
|
cluster-vol:
|
|
image: alpine
|
|
volumes:
|
|
- type: cluster
|
|
source: my-csi-volume
|
|
target: /data
|
|
|
|
# references the configs/secrets below. Their uid/gid/mode are not a
|
|
# load-time matter — see TestFileReferenceOverridesWarning.
|
|
file-refs:
|
|
image: alpine
|
|
configs:
|
|
- source: myconfig
|
|
secrets:
|
|
- source: mysecret
|
|
|
|
configs:
|
|
myconfig:
|
|
file: ./myconfig.txt
|
|
labels:
|
|
team: backend # configs[].labels: reachable and flagged
|
|
|
|
secrets:
|
|
mysecret:
|
|
file: ./mysecret.txt
|
|
driver_opts: # secrets[].driver_opts: reachable and flagged (unlike configs)
|
|
region: eu-west
|
|
labels:
|
|
team: backend
|