forked from VirtusLab/ide-probe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
34 lines (32 loc) · 1.07 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
image:
file: .gitpod.Dockerfile
jetbrains:
intellij:
plugins:
- org.intellij.scala
tasks:
- name: base init
init: |
set -e
gp env IDEPROBE_DISPLAY=xvfb
sbt "Test / compile"
/ide-desktop/backend/bin/remote-dev-server.sh warm-up /workspace/ide-probe
set +e
- name: tailscaled
command: |
if [ -n "${TAILSCALE_STATE_MYPROJECT}" ]; then
# restore the tailscale state from gitpod user's env vars
sudo mkdir -p /var/lib/tailscale
echo "${TAILSCALE_STATE_MYPROJECT}" | sudo tee /var/lib/tailscale/tailscaled.state > /dev/null
fi
service tailscaled start
service tailscaled status
- name: tailscale
command: |
if [ -n "${TAILSCALE_STATE_MYPROJECT}" ]; then
sudo -E tailscale up
else
sudo -E tailscale up --hostname "gitpod-${GITPOD_GIT_USER_NAME// /-}-$(echo ${GITPOD_WORKSPACE_CONTEXT} | jq -r .repository.name)"
# store the tailscale state into gitpod user
gp env TAILSCALE_STATE_MYPROJECT="$(sudo cat /var/lib/tailscale/tailscaled.state)"
fi