-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
60 lines (58 loc) · 1.92 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
tasks:
- name: Secrets & configurations
command: |
make install &
eval $(gp env -e)
echo "$LANGAME_SVC_PROD" > svc.prod.json
echo "$LANGAME_SVC_DEV" > svc.dev.json
echo "$LANGAME_PYPIRC" | base64 -d > .pypirc
echo "$LANGAME_PIPCONF" | base64 -d > pip.conf
cp .pypirc env/.pypirc
cp pip.conf env/pip.conf
echo "Setting up Kubernetes..."
mkdir -p ~/.kube
echo $KUBECONFIG | python3 -c 'import sys, yaml, json; j=json.loads(sys.stdin.read()); print(yaml.safe_dump(j))' > ~/.kube/config
export GOOGLE_APPLICATION_CREDENTIALS=./svc.dev.json
echo "Setting up Docker for Google Cloud..."
mkdir -p ~/.docker
cat >~/.docker/config.json <<EOL
{
"credHelpers": {
"gcr.io": "gcloud",
"us.gcr.io": "gcloud",
"eu.gcr.io": "gcloud",
"asia.gcr.io": "gcloud",
"staging-k8s.gcr.io": "gcloud",
"marketplace.gcr.io": "gcloud"
}
}
EOL
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
image:
file: .gitpod.Dockerfile
vscode:
extensions:
- aaron-bond.better-comments
- bungcip.better-toml
- GitHub.copilot
- gitpod.gitpod-desktop
- googlecloudtools.cloudcode
- hbenl.vscode-test-explorer
- k--kato.intellij-idea-keybindings
- mechatroner.rainbow-csv
- ms-azuretools.vscode-docker
- ms-kubernetes-tools.vscode-kubernetes-tools
- ms-vscode-remote.remote-containers
- ms-vscode-remote.remote-ssh
- ms-vscode-remote.remote-ssh-edit
- ms-vscode.test-adapter-converter
- mushan.vscode-paste-image
- Perkovec.emoji
- RandomFractalsInc.vscode-data-preview
- redhat.vscode-yaml
- stylelint.vscode-stylelint
- Tim-Koehler.helm-intellisense
- toba.vsfire
- wix.vscode-import-cost
- zxh404.vscode-proto3
- golang.go