Updated devcontainer.json
Uses the new devcontainers from dapr/dapr
Additionally, adds some settings that are useful when working with Dapr
{
"name": "Dapr Components Contributor Environment",
- "image": "ghcr.io/dapr/dapr-dev:0.1.9",
+ "image": "ghcr.io/dapr/dapr-dev:latest",
"containerEnv": {
// Uncomment to overwrite devcontainer .kube/config and .minikube certs with the localhost versions
// each time the devcontainer starts, if the respective .kube-localhost/config and .minikube-localhost
// the localhost bind-mount /var/run/docker-host.sock.
// "BIND_LOCALHOST_DOCKER": "true",
+ // Necessary for components-contrib's certification tests
"GOLANG_PROTOBUF_REGISTRATION_CONFLICT": "true"
},
"extensions": [
+ "davidanson.vscode-markdownlint",
"golang.go",
"ms-azuretools.vscode-dapr",
"ms-azuretools.vscode-docker",
"ms-kubernetes-tools.vscode-kubernetes-tools"
],
+ "features": {
+ "ghcr.io/devcontainers/features/sshd:1": {},
+ "ghcr.io/devcontainers/features/github-cli:1": {},
+ "ghcr.io/devcontainers/features/azure-cli:1": {}
+ },
"mounts": [
// Mount docker-in-docker library volume
"type=volume,source=dind-var-lib-docker,target=/var/lib/docker",
"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/components-contrib",
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/components-contrib",
