diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ef336e07f..5c0048ce4 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "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 @@ -11,14 +11,21 @@ // 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", @@ -57,7 +64,12 @@ "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",