forked from steedos/steedos-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
44 lines (43 loc) · 1.24 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
36
37
38
39
40
41
42
43
44
image:
file: .gitpod.Dockerfile
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
ports:
- port: 5000
onOpen: open-browser
visibility: public
- port: 6379
onOpen: ignore
- port: 27017
onOpen: ignore
- port: 3100 # Creator
onOpen: open-browser
visibility: public
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- init: sh ./.scripts/gitpod_setup.sh
- name: Mongo
init: |
mkdir -p /workspace/mongodb/data/db
command: |
mongod --replSet rs0 --dbpath /workspace/mongodb/data/db
- command: |
gp await-port 27017
mongo steedos --eval "rs.initiate()"
exit
- name: Redis
command: |
redis-server --save "" --appendonly no --client-output-buffer-limit replica 0 0 0 --client-output-buffer-limit pubsub 0 0 0 --client-output-buffer-limit slave 0 0 0
- name: Steedos
init: |
yarn
yarn bootstrap
yarn build
command: |
sh ./.scripts/gitpod_env.sh
gp await-port 27017
gp await-port 6379
export ROOT_URL=$(gp url 5000)
yarn start
vscode:
extensions:
- dbaeumer.vscode-eslint