Debian Codegraph @

pkg/e2e/fixtures/run-test/build-once-nested.yaml

raw
1 services:
2 # Database service with build
3 db:
4 pull_policy: build
5 build:
6 dockerfile_inline: |
7 FROM alpine
8 RUN echo "DB built at $(date)" > /db-build.txt
9 CMD sleep 3600
10
11 # API service that depends on db
12 api:
13 pull_policy: build
14 build:
15 dockerfile_inline: |
16 FROM alpine
17 RUN echo "API built at $(date)" > /api-build.txt
18 CMD sleep 3600
19 depends_on:
20 - db
21
22 # App service that depends on api (which depends on db)
23 app:
24 pull_policy: build
25 build:
26 dockerfile_inline: |
27 FROM alpine
28 RUN echo "App built at $(date)" > /app-build.txt
29 CMD echo "App running"
30 depends_on:
31 - api
32