Skip to content

Instantly share code, notes, and snippets.

@tamanobi
Created October 9, 2019 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamanobi/a61eefbbd00f2873d66eb253f8683450 to your computer and use it in GitHub Desktop.
Save tamanobi/a61eefbbd00f2873d66eb253f8683450 to your computer and use it in GitHub Desktop.
Cloud VS Code.
apiVersion: v1
kind: ConfigMap
metadata:
name: vscode-settings-configmap
data:
settings.json: |
{
"terminal.integrated.shell.linux": "/bin/bash"
}
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: dind
spec:
replicas: 1
template:
metadata:
labels:
editor: vscode
spec:
containers:
- name: dind
image: docker:19.03.2-dind
env:
- name: DOCKER_TLS_CERTDIR
value: ""
securityContext:
privileged: true
ports:
- containerPort: 2375
- name: cloud9
image: linuxserver/cloud9:go
env:
- name: DOCKER_HOST
value: "tcp://localhost:2375"
- name: vscode
image: codercom/code-server:2.1583-vsc1.38.1
env:
- name: DOCKER_HOST
value: "tcp://localhost:2375"
volumeMounts:
- name: vscode-settings
mountPath: /home/coder/.local/share/code-server/User/settings.json
volumes:
- name: vscode-settings
configMap:
name: vscode-settings-configmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment