You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.3 KiB

  1. //////
  2. // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
  3. // https://github.com/microsoft/vscode-dev-containers/tree/v0.134.1/containers/docker-from-docker-compose
  4. {
  5. "name": "Docker from Docker Compose + Kubernetes & Helm",
  6. "dockerFile": "Dockerfile",
  7. //"service": "docker-from-docker",
  8. "workspaceFolder": "/workspace",
  9. // Use this environment variable if you need to bind mount your local source code into a new container.
  10. "remoteEnv": {
  11. "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}",
  12. "SYNC_LOCALHOST_KUBECONFIG": "true"
  13. },
  14. "mounts": [
  15. "source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind",
  16. "source=${env:HOME}${env:USERPROFILE}/.kube,target=/usr/local/share/kube-localhost,type=bind"
  17. // Uncomment the next line to also sync certs in your .minikube folder
  18. // "source=${env:HOME}${env:USERPROFILE}/.minikube,target=/usr/local/share/minikube-localhost,type=bind"
  19. ],
  20. // Set *default* container specific settings.json values on container create.
  21. "settings": {
  22. "terminal.integrated.shell.linux": "/bin/bash"
  23. },
  24. // Add the IDs of extensions you want installed when the container is created.
  25. "extensions": [
  26. "ms-azuretools.vscode-docker",
  27. "ms-dotnettools.csharp",
  28. "github.github-vscode-theme",
  29. "coenraads.bracket-pair-colorizer-2",
  30. "github.vscode-pull-request-github",
  31. "ms-azuretools.vscode-docker",
  32. "ms-vsliveshare.vsliveshare",
  33. "vscode-icons-team.vscode-icons",
  34. "visualstudioexptteam.vscodeintellicode",
  35. "ms-azuretools.vscode-docker",
  36. "ms-kubernetes-tools.vscode-kubernetes-tools",
  37. "ms-mssql.mssql",
  38. "formulahendry.dotnet-test-explorer"
  39. ],
  40. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  41. "forwardPorts": [],
  42. // Use 'postCreateCommand' to run commands after the container is created.
  43. "postCreateCommand": "wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube-linux-amd64 && sudo mv minikube-linux-amd64 /usr/local/bin/minikube && minikube version"
  44. // Uncomment when using a ptrace-based debugger like C++, Go, and Rust.
  45. // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
  46. // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
  47. // "overrideCommand": false,
  48. //"remoteUser": "vscode"
  49. }