代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。