forked from Couchers-org/couchers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
33 lines (29 loc) · 1.2 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
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Compile the protocol buffers, launch the backend with docker-compose
before: cd app
init: |
docker run --rm -w /app -v $(pwd):/app registry.gitlab.com/couchers/grpc ./generate_protos.sh
BASE_URL=$(gp url 3000) MEDIA_SERVER_BASE_URL=$(gp url 5000) docker-compose -f docker-compose.yml -f docker-compose.gitpod.yml up --build
- name: Install and launch the frontend with yarn
before: cd app/web
init: |
yarn install
gp await-port 8888
command: NEXT_PUBLIC_API_BASE_URL=$(gp url 8888) yarn start
- name: Instructions
before: cd app/
init: until (curl --head -s localhost:8888 localhost:3000 > /dev/null); do sleep 1; clear; echo "Waiting for backend & frontend to come up. This might take a few minutes!"; done
command: echo "Success! You can now launch the frontend by going to " $(gp url 3000)
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
ports:
- port: 3000
visibility: public
onOpen: open-preview
- port: 8888
visibility: public
github:
prebuilds:
master: true
branches: true
pullRequests: true