-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitpod.yml
120 lines (111 loc) · 3.14 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
image:
file: .gitpod.Dockerfile
context: ./
tasks:
# ports: 9080
- name: distinct-core-api
init: |
cd ${GITPOD_REPO_ROOTS}/src/distinct-core
pip3 install -r requirements.txt
command: |
cd ${GITPOD_REPO_ROOTS}/src/distinct-core
python3 distinct-core.py
env:
VERBOSITY: DEBUG
DISTINCT_DB: mongodb://localhost:27017
DISTINCT_BROWSER_API: http://localhost:9081
PYTHON_APP_MODE: prod
# ports: 8080
- name: distinct-core-gui
init: |
export VUE_APP_CORE_API=https://9080-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}
export VUE_APP_BROWSER_NOVNC=https://9090-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}
cd ${GITPOD_REPO_ROOTS}/src/distinct-core/gui
npm install
npm run build
command: |
cd ${GITPOD_REPO_ROOTS}/src/distinct-core/gui
npm run serve
env:
VUE_APP_MODE: prod
# ports: 9081
- name: distinct-browser-api
init: |
cd ${GITPOD_REPO_ROOTS}/src/distinct-browser/mitmproxy
pip3 install -r requirements.txt
cd ${GITPOD_REPO_ROOTS}/src/distinct-browser/api
pip3 install -r requirements.txt
command: |
cd ${GITPOD_REPO_ROOTS}/src/distinct-browser/api
python3 distinct-browser.py
env:
VERBOSITY: DEBUG
DISTINCT_DB: mongodb://localhost:27017
DISTINCT_CORE_API: http://localhost:9080
# ports: 9091
- name: distinct-browser-vnc
init: |
mkdir -p ~/.vnc
touch ~/.vnc/passwd
echo $VNCPWD | vncpasswd -f > ~/.vnc/passwd
chmod 600 ~/.vnc/passwd
echo -e '#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
startxfce4 &
' > ~/.vnc/xstartup
chmod +x ~/.vnc/xstartup
command: |
vncserver :0 -rfbport $VNCPORT -geometry $VNCDISPLAY -depth $VNCDEPTH -localhost
exit
env:
VNCPORT: 9091
VNCPWD: changeme
VNCDISPLAY: 1920x1080
VNCDEPTH: 16
# ports: 9090
- name: distinct-browser-novnc
command: /usr/share/novnc/utils/launch.sh --listen $NOVNCPORT --vnc localhost:$VNCPORT
env:
VNCPORT: 9091
NOVNCPORT: 9090
# ports: 27017
- name: distinct-db
command: mongod --dbpath /app/data/db
- name: git-lfs-distinct-chromium
init: |
cd ${GITPOD_REPO_ROOTS}
git lfs pull
sudo cp ./src/distinct-browser/distinct-chromium.zip /app/distinct-chromium.zip
sudo unzip /app/distinct-chromium.zip -d /app
exit
ports:
- name: distinct-core-api
port: 9080
onOpen: open-preview
visibility: public
- name: distinct-core-gui
port: 8080
onOpen: ignore
visibility: public
- name: distinct-browser-api
port: 9081
onOpen: ignore
visibility: public
- name: distinct-browser-vnc
port: 9091
onOpen: ignore
visibility: private
- name: distinct-browser-novnc
port: 9090
onOpen: ignore
visibility: public
- name: distinct-db
port: 27017
onOpen: ignore
visibility: private