-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
52 lines (49 loc) · 2.35 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
image:
file: .gitpod.Dockerfile
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- 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
sudo tailscaled
- name: tailscale
init: sudo apt-get update && sudo apt-get install tailscale -y # Make sure tailscale is up to date
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
- name: install convience tools
init: sudo chown gitpod:gitpod ~/.config/fish
command: nix-env -iA nixpkgs.starship nixpkgs.atuin nixpkgs.carapace
#- name: gcloud
# command: |
# echo $GCP_ACCOUNT > /home/gitpod/account.json
# gcloud auth activate-service-account --key-file=/home/gitpod/account.json
# rm /home/gitpod/account.json
# gcloud config set project gke-playground-191013
# gcloud container clusters get-credentials moritz-pet-clinic --zone us-west1-b --project gke-playground-191013
# kubectl apply -f docker-engine.k8s.yaml
# kubectl port-forward deployment/docker-engine 2375:2375 &
# docker login --username meysholdt --password $DOCKER_HUB_TOKEN
#vscode:
# extensions:
# - [email protected]:gKokcVIlbvXM5pr9HCsGiA==
# - [email protected]:WOgtgIwX3Ngy4pM9ArXjCQ==
# - [email protected]:/G6fobfzYSrYZdNU7UB78g==
# - [email protected]:Xhg4EprIGTB3Rd2PNCL/xA==
# - [email protected]:KaEYYfe8G3NOWlsM6VNLHA==
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
ports:
- port: 8080
onOpen: open-preview
vscode:
extensions:
- yzhang.markdown-all-in-one