-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlocal.builder.yml
71 lines (62 loc) · 1.33 KB
/
local.builder.yml
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
version: "3"
services:
base:
image: node:20
volumes:
- nodemodules:/app/node_modules
- .:/app
working_dir: /app
environment:
- NODE_ENV=production
install:
extends:
service: base
command: npm ci && npm audit fix
environment:
DOCKER: true
NODE_TLS_REJECT_UNAUTHORIZED: 0 # todo: solve local certificate chain issues
NODE_ENV: development
PUPPETEER_SKIP_DOWNLOAD: true
npmlist:
extends:
service: base
command: npm list --depth=0
test:
extends:
service: base
command: npm run test
test-watch:
extends:
service: base
command: npm run test-watch
build:
extends:
service: base
command: npm run build
networks:
default:
aliases:
- www.dev.documentcloud.org
squarelet_default:
aliases:
- www.dev.documentcloud.org
# TODO: Specify that base must be running first.
browser-test:
build:
dockerfile: browser-test.Dockerfile
networks:
default:
aliases:
- www.dev.documentcloud.org
squarelet_default:
aliases:
- www.dev.documentcloud.org
environment:
- NODE_ENV=test
command: ./browser-test-all.sh
volumes:
nodemodules:
external: true
networks:
squarelet_default:
external: true