Upgrade devcontainer config (#6405)
This commit is contained in:
parent
331dc24f07
commit
88775a27a8
3 changed files with 16 additions and 24 deletions
|
|
@ -1,5 +0,0 @@
|
|||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/go/.devcontainer/base.Dockerfile
|
||||
|
||||
# VARIANT Defined in devcontainer.json
|
||||
ARG VARIANT="1.18"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
|
||||
|
|
@ -1,22 +1,24 @@
|
|||
{
|
||||
"extensions": [
|
||||
"golang.go"
|
||||
],
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
"args": {
|
||||
"VARIANT": "1.18"
|
||||
}
|
||||
"image": "mcr.microsoft.com/devcontainers/go:1.18",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/sshd:1": {}
|
||||
},
|
||||
"settings": {
|
||||
"go.toolsManagement.checkForUpdates": "local",
|
||||
"go.useLanguageServer": true,
|
||||
"go.gopath": "/go"
|
||||
"remoteUser": "vscode",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"golang.go"
|
||||
],
|
||||
"settings": {
|
||||
"go.toolsManagement.checkForUpdates": "local",
|
||||
"go.useLanguageServer": true,
|
||||
"go.gopath": "/go"
|
||||
}
|
||||
}
|
||||
},
|
||||
"runArgs": [
|
||||
"--cap-add=SYS_PTRACE",
|
||||
"--security-opt",
|
||||
"seccomp=unconfined"
|
||||
],
|
||||
"remoteUser": "vscode"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"search.exclude": {
|
||||
"vendor/**": true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue