mirror of https://github.com/dapr/cli.git
Update dev container (#1199)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
778b2a5933
commit
a891cb09b3
|
@ -1,9 +1,7 @@
|
|||
{
|
||||
"name": "Dapr CLI Dev Environment",
|
||||
// Update the container version when you publish dev-container
|
||||
"image": "ghcr.io/dapr/dapr-dev:0.1.8",
|
||||
// Replace with uncommented line below to build your own local copy of the image
|
||||
// "dockerFile": "../docker/Dockerfile-dev",
|
||||
"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
|
||||
|
@ -21,12 +19,16 @@
|
|||
"ms-azuretools.vscode-docker",
|
||||
"ms-kubernetes-tools.vscode-kubernetes-tools"
|
||||
],
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/sshd:1": {},
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||
},
|
||||
"mounts": [
|
||||
// Mount docker-in-docker library volume
|
||||
"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",
|
||||
|
@ -59,8 +61,10 @@
|
|||
"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
|
||||
},
|
||||
"workspaceFolder": "/workspaces/cli",
|
||||
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/cli",
|
||||
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/workspaces/cli"
|
||||
}
|
Loading…
Reference in New Issue