-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (85 loc) · 1.97 KB
/
docker-compose.yml
File metadata and controls
96 lines (85 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
builder:
image: ghcr.io/r2d2bzh/docker-build-nodejs-builder:${VERSION:-dev}
build:
context: builder
args:
NODE_JS_VERSION: ${NODE_JS_VERSION}
entrypoint: ["tail", "-f", "/dev/null"]
runtime:
image: ghcr.io/r2d2bzh/docker-build-nodejs-runtime:${VERSION:-dev}
build:
context: runtime
profiles:
- disabled
test-config:
build:
context: test/config
volumes:
- ./test/config/config:/home/nonroot/config
profiles:
- test
test-dynamic:
build:
context: test/dynamic
profiles:
- test
test-esm:
build:
context: test/esm
profiles:
- test
test-keep-names:
build:
context: test/keep-names
profiles:
- test
test-sharp:
build:
context: test/sharp
profiles:
- test
# tag::test-simple[]
test-simple:
build:
context: test/simple
args:
main: simple.js
# end::test-simple[]
profiles:
- test
test-wrtc:
build:
context: test/wrtc
profiles:
- test
test:
image: busybox
command: ["echo", "all tests were passed successfully"]
depends_on:
test-config: { condition: service_completed_successfully }
test-dynamic: { condition: service_completed_successfully }
test-esm: { condition: service_completed_successfully }
test-keep-names: { condition: service_completed_successfully }
test-sharp: { condition: service_completed_successfully }
test-simple: { condition: service_completed_successfully }
test-wrtc: { condition: service_completed_successfully }
profiles:
- test
devenv:
image: ghcr.io/r2d2bzh/docker-build-nodejs-devenv:${VERSION:-dev}
build:
context: devenv
args:
NODE_JS_VERSION: ${NODE_JS_VERSION}
#tag::dev[]
dev:
build:
context: dev
args:
USER: ${LOGNAME}
UID: ${UID}
GID: ${GID}
volumes:
- .:/home/user/dev
#end::dev[]