Skip to content

Commit

Permalink
added GKS support
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-ochoa committed May 7, 2024
1 parent 768befb commit c837789
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ docker exec -ti --user root coder_embedded_dd_vm /bin/sh -c "curl -s https://raw
docker exec -ti --user root coder_embedded_dd_vm /bin/sh -c "curl -s https://raw.githubusercontent.com/marcelo-ochoa/coder-docker-extension/main/addOracleDevTools.sh | bash"
```

```bash
docker exec -ti --user root coder_embedded_dd_vm /bin/sh -c "curl -s https://raw.githubusercontent.com/marcelo-ochoa/coder-docker-extension/main/addGKS.sh | bash"
```

Note 1: If you upgrade VS Code Web Docker Desktop Extension above post installations steps must be re-done.

Note 2: If you add Docker Client/Extension support [addDocker.sh](https://raw.githubusercontent.com/marcelo-ochoa/coder-docker-extension/main/addDocker.sh) coder_embedded_dd_vm must be restarted, execute:
Expand Down
13 changes: 13 additions & 0 deletions addGKS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
export NODE_MAJOR=20
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common unzip lsb-release
install -m 0755 -d /etc/apt/keyrings
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
apt-get update && apt-get install -y google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
mv kubectl /usr/local/bin
chmod a+rx /usr/local/bin/kubectl
su -l coder /bin/sh -c "code-server --force --install-extension=redhat.vscode-yaml --install-extension=ms-azuretools.vscode-docker --install-extension=yzhang.markdown-all-in-one --install-extension=ms-kubernetes-tools.vscode-kubernetes-tools"

0 comments on commit c837789

Please sign in to comment.