-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevcontainer.json
36 lines (33 loc) · 1.4 KB
/
devcontainer.json
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
{
"name": "Dapr Dev Environment",
// Update container version when you update dev-container
"image": "docker.io/daprio/dapr-dev:0.1.1",
// Uncomment if you want to use your local docker image
//"dockerFile": "../docker/Dockerfile-dev",
"runArgs": [
// On Linux, this will prevent new files getting created as root, but you
// may need to update the USER_UID and USER_GID in docker/Dockerfile-dev
// to match your user if not 1000.
"-u", "dapr",
"--mount", "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock",
// Comment out if you do not use kubectl inside container
"--mount", "type=bind,source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/dapr/.kube-localhost",
// Comment out if you do not use minikube inside container
"--mount", "type=bind,source=${env:HOME}${env:USERPROFILE}/.minikube,target=/home/dapr/.minikube-localhost",
"-e", "SYNC_LOCALHOST_KUBECONFIG=true",
"--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined",
// Comment out if you want to have the network-isolated dev environment.
"--net=host"
],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"go.gopath": "/go"
},
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/go/src/github.com/dapr",
"workspaceFolder": "/go/src/github.com/dapr",
"extensions": [
"ms-vscode.go",
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools"
]
}