Skip to content

Commit

Permalink
fixed devcontainer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapenbr committed Nov 14, 2023
1 parent be1537f commit 4f32de2
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.231.2/containers/go
{
"name": "Go",
"name": "Go",

"image": "mcr.microsoft.com/devcontainers/go:1.21",
// alternative: use the bullseye image
// "image": "mcr.microsoft.com/devcontainers/go:1.20-bullseye",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--network=host"
],
"image": "mcr.microsoft.com/devcontainers/go:1.21",
// alternative: use the bullseye image
// "image": "mcr.microsoft.com/devcontainers/go:1.20-bullseye",
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--network=host"
],

"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.lintTool": "golangci-lint",
"gopls": {
"formatting.gofumpt": true
},
"[go]": {
"editor.rulers": [90]
},
"editor.defaultFormatter": "golang.go",
"editor.formatOnSave": true
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"EditorConfig.EditorConfig",
"cschleiden.vscode-github-actions",
"GitHub.copilot"
]
}
},
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.lintTool": "golangci-lint",
"gopls": {
"formatting.gofumpt": true
},
"[go]": {
"editor.rulers": [90],
"editor.defaultFormatter": "golang.go",
"editor.formatOnSave": true
}
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"golang.Go",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"EditorConfig.EditorConfig",
"cschleiden.vscode-github-actions",
"GitHub.copilot"
]
}
},

"containerEnv": {
"TZ": "Europe/Berlin"
},
"containerEnv": {
"TZ": "Europe/Berlin"
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./devinit.sh",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./devinit.sh",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker": "latest",
"ghcr.io/devcontainers-contrib/features/pre-commit": "latest"
}
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker": "latest",
"ghcr.io/devcontainers-contrib/features/pre-commit": "latest"
}
}

0 comments on commit 4f32de2

Please sign in to comment.