Add Dockerfile and devcontainer configuration for Go development environment

This commit is contained in:
Cédric Verstraeten
2025-05-20 11:09:54 +00:00
parent 15640363e2
commit e3a835360e
2 changed files with 26 additions and 0 deletions

7
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM mcr.microsoft.com/devcontainers/go:1.24-bookworm
# Install helm and kubectl
RUN curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
&& chmod +x ./kubectl \
&& sudo mv ./kubectl /usr/local/bin/kubectl

View File

@@ -0,0 +1,19 @@
{
"name": "go:1.24-bookworm",
"dockerFile": "Dockerfile",
"runArgs": ["--privileged"],
"customizations": {
"vscode": {
"extensions": [
"ms-kubernetes-tools.vscode-kubernetes-tools",
"redhat.vscode-yaml",
"Tim-Koehler.helm-intellisense",
"ms-vscode.azurecli",
"ms-vscode-remote.remote-containers",
"GitHub.copilot",
"fabiospampinato.vscode-diff",
"ms-azuretools.vscode-docker"
]
}
}
}