forked from opengovsg/GoGovSG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
35 lines (35 loc) · 1.03 KB
/
.gitpod.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
image:
file: .gitpod.Dockerfile
tasks:
- command: redis-server
- before: cp ./init-localstack.sh /docker-entrypoint-initaws.d/init-localstack.sh
init: pip install --quiet localstack[full]
command: /workspace/.pip-modules/bin/localstack start --host
- before: npm install maildev -g
command: echo "maildev.on('new', ({ html }) => console.log('The login OTP is ' + html.match(/\d{6}/)[0]))" >> $(which maildev) && maildev --verbose
- before: export ACCESS_ENDPOINT=`gp url 4566`
init: npm install
command: /tmp/wait-for-it.sh localhost:4566 -t 0 -- ./init-localstack.sh && echo "Run npm run docker-dev to begin"
ports:
# postgres
- port: 5432
onOpen: ignore
# redis
- port: 6379
onOpen: ignore
# localstack
- port: 4566
onOpen: ignore
- port: 4572
onOpen: ignore
- port: 9229
onOpen: ignore
# expressjs - not needed since we have
# access via webpack dev server proxy
- port: 8080
onOpen: ignore
# maildev
- port: 1025
onOpen: ignore
- port: 1080
onOpen: ignore