1 Star 0 Fork 0

CNCF/clomonitor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.gitpod.yml 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cncf/clomonitor.git
[email protected]:cncf/clomonitor.git
cncf
clomonitor
clomonitor
main

搜索帮助