-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
28 lines (27 loc) · 996 Bytes
/
.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
tasks:
- init: |
# Initialize Django
python3 -m pip install -r ./backend/requirements.txt &&
python3 ./backend/manage.py migrate
# Initialize react
pushd . &&
cd frontend &&
npm install &&
popd
# Initialize selenium
sudo apt-get update
sudo apt-get install libnss3-dev xvfb -y
sudo Xvfb :1 -screen 0 1024x768x24
export DISPLAY=:1
sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add
sudo touch /etc/apt/sources.list.d/google-chrome.list
sudo bash -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get -y update
sudo apt-get -y install google-chrome-stable
/workspace/TEAM_002/selenium/setup.sh
command: |
echo 'TODO: start app'
- name: Set k8s context
command: echo $K8S_CTX | base64 -d > ~/.kube/config