-
Notifications
You must be signed in to change notification settings - Fork 76
/
.gitpod.yml
43 lines (43 loc) · 1.74 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
image:
file: .gitpod/Dockerfile
tasks:
- name: Frontend
init: |
touch /tmp/.frontend-ready-lock
echo -e "\n- Building frontend..\n"
cd web && yarn install
yarn build
rm /tmp/.frontend-ready-lock
- name: Backend
init: |
echo -e "\n- Setting up database..\n"
cd && go get -u github.com/jackc/tern
psql -c 'create database clomonitor'
cd /workspace/clomonitor/database/migrations && TERN_CONF=/workspace/clomonitor/.gitpod/tern.conf ./migrate.sh
psql clomonitor < /workspace/clomonitor/.gitpod/sample_data.sql
echo -e "\n- Building backend..\n"
sed -i 's/^default_toolchain.*/default_toolchain = "stable-x86_64-unknown-linux-gnu"/g' /home/gitpod/.rustup/settings.toml
cargo build
go get -u github.com/ossf/scorecard/v4
mkdir -p ~/.config/clomonitor && cp /workspace/clomonitor/.gitpod/*.yaml ~/.config/clomonitor
echo -e "\n- Waiting for frontend build to complete..\n"
sleep 1 && while [ -f /tmp/.frontend-ready-lock ]; do sleep 1; done
echo -e "\nPlease set your Github token in ~/.config/clomonitor/tracker.yaml and run the tracker with the following command:\n"
echo -e "\n\t/workspace/clomonitor/target/debug/clomonitor-tracker -c ~/.config/clomonitor/tracker.yaml\n"
echo -e "\nOnce the tracker has completed, you can run the API server with the command below:\n"
echo -e "\n\t/workspace/clomonitor/target/debug/clomonitor-apiserver -c ~/.config/clomonitor/apiserver.yaml\n"
ports:
- port: 3000
onOpen: ignore
- port: 5432
onOpen: ignore
- port: 8000
onOpen: notify
github:
prebuilds:
master: true
branches: false
pullRequests: false
pullRequestsFromForks: true
addCheck: false
addComment: false