Skip to content

Commit

Permalink
Updates settings for dev container (dapr#5865)
Browse files Browse the repository at this point in the history
Sets some environmental variables and VS Code settings useful when working with Dapr

Fixes dapr#5686

Co-authored-by: Artur Souza <[email protected]>
  • Loading branch information
ItalyPaleAle and artursouza authored Feb 1, 2023
1 parent e128782 commit 4888ae0
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

// Uncomment to disable docker-in-docker and automatically proxy default /var/run/docker.sock to
// the localhost bind-mount /var/run/docker-host.sock.
// "BIND_LOCALHOST_DOCKER": "true"
// "BIND_LOCALHOST_DOCKER": "true",

// Necessary for components-contrib's certification tests
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "true"
},
"extensions": [
"davidanson.vscode-markdownlint",
Expand All @@ -31,7 +34,7 @@
"type=volume,source=dind-var-lib-docker,target=/var/lib/docker",

// Bind mount docker socket under an alias to support docker-from-docker
"type=bind,source=/var/run/docker.sock,target=/var/run/docker-host.sock",
"type=bind,source=/var/run/docker.sock,target=/var/run/docker-host.sock"

// Uncomment to clone local .kube/config into devcontainer
// "type=bind,source=${env:HOME}${env:USERPROFILE}/.kube,target=/home/dapr/.kube-localhost",
Expand Down Expand Up @@ -64,8 +67,13 @@
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go"
"go.gopath": "/go",
"go.buildTags": "e2e,perf,conftests,unit,integration_test,certtests",
"git.alwaysSignOff": true,
"terminal.integrated.env.linux": {
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "ignore"
}
},
"workspaceFolder": "/workspaces/dapr",
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/dapr",
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/dapr"
}

0 comments on commit 4888ae0

Please sign in to comment.