-
Notifications
You must be signed in to change notification settings - Fork 455
/
.gitpod.yml
28 lines (23 loc) · 1.01 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
image:
file: .gitpod.Dockerfile
ports:
- port: 8000
onOpen: open-browser
- port: 8001
onOpen: ignore
tasks:
- init: |
git config --global user.name $GIT_AUTHOR_NAME
git config --global user.email $GIT_COMMITTER_EMAIL
[[ ! -z "${DOCKER_USER}" && ! -z "${DOCKER_PASSWD}" ]] && docker login -u${DOCKER_USER} -p${DOCKER_PASSWD}
[[ ! -z "${GITHUB_USER}" && ! -z "${GITHUB_TOKEN}" ]] && docker login ghcr.io -u${GITHUB_USER} -p${GITHUB_TOKEN}
echo kubesphere/console | gh repo fork --remote
make container container-push
cp /home/gitpod/local_config.yaml /workspace/console/server/local_config.yaml
gp open /workspace/console/server/local_config.yaml
sed 's/hostname.*:/hostname.replace("8000", "8001") :/' server/views/index.html -i
sed 's/hostname/hostname.replace("8000", "8001")/' server/components/boot.js -i
sed 's/http:/https:/' server/components/boot.js -i
sed 's/:8001//' server/components/boot.js -i
yarn
command: yarn start