steedos-platform/.gitpod.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2021-12-27 12:13:46 +00:00
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
2022-01-14 00:38:48 +00:00
onOpen: open-browser
2021-12-27 12:13:46 +00:00
visibility: public
2022-01-14 00:38:48 +00:00
- port: 6379
onOpen: ignore
- port: 27017
onOpen: ignore
- port: 3100 # Creator
2022-01-14 00:38:48 +00:00
onOpen: open-browser
visibility: public
2021-12-27 12:13:46 +00:00
# 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
2022-01-14 00:38:48 +00:00
- name: Mongo
init: |
2021-12-27 12:13:46 +00:00
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()"
2022-01-14 00:38:48 +00:00
exit
- name: Redis
command: |
2021-12-31 10:57:12 +00:00
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
2022-01-14 00:41:33 +00:00
- name: Steedos
2022-01-14 00:38:48 +00:00
init: |
2021-12-28 02:08:15 +00:00
yarn
2021-12-27 12:13:46 +00:00
yarn bootstrap
2021-12-28 07:18:59 +00:00
yarn build
2021-12-27 12:13:46 +00:00
command: |
2022-02-14 10:03:05 +00:00
sh ./.scripts/gitpod_env.sh
2021-12-27 12:13:46 +00:00
gp await-port 27017
gp await-port 6379
export ROOT_URL=$(gp url 5000)
yarn start
vscode:
extensions:
- dbaeumer.vscode-eslint