From 33a3973242829e0352349730fff66af7cf8b48ff Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Tue, 2 Jul 2024 19:25:53 +0200 Subject: [PATCH] Restore devcontainer --- .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..f2d688a5 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +{ + "image": "mcr.microsoft.com/azterraform:latest", + + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined", + "--init", + "--network=host" + ], + + "mounts": [ + "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind", + "source=${localEnv:HOME}${localEnv:USERPROFILE},target=/host-home-folder,type=bind,consistency=cached" + ], + "customizations": { + "vscode": { + "settings": { + "go.toolsManagement.checkForUpdates": "local", + "go.useLanguageServer": true, + "go.goroot": "/usr/local/go" + }, + "extensions": [ + "hashicorp.terraform", + "golang.Go" + ] + } + } +}