Skip to content

Commit 69fafd1

Browse files
committed
chore: update devcontainer setup
Signed-off-by: Walter Scheper <[email protected]>
1 parent 306ab93 commit 69fafd1

File tree

3 files changed

+41
-62
lines changed

3 files changed

+41
-62
lines changed

.devcontainer/Dockerfile

-19
This file was deleted.

.devcontainer/devcontainer.json

+33-41
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,39 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.1/containers/go
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/go
33
{
4-
"name": "Gotagger",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
"args": {
8-
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
9-
// Append -bullseye or -buster to pin to an OS version.
10-
// Use -bullseye variants on local arm64/Apple Silicon.
11-
"VARIANT": "1.18",
12-
// Options
13-
"NODE_VERSION": "none"
14-
}
15-
},
16-
"runArgs": [
17-
"--init",
18-
"--cap-add=SYS_PTRACE",
19-
"--security-opt",
20-
"seccomp=unconfined"
21-
],
22-
// Set *default* container specific settings.json values on container create.
23-
"settings": {
24-
"go.toolsManagement.checkForUpdates": "local",
25-
"go.useLanguageServer": true,
26-
"go.gopath": "/go",
27-
"go.goroot": "/usr/local/go"
4+
"name": "Go",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/go:1-1.23-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/git:1": {
9+
"ppa": true,
10+
"version": "latest"
11+
},
12+
"ghcr.io/devcontainers/features/github-cli:1": {
13+
"installDirectlyFromGitHubRelease": true,
14+
"version": "latest"
15+
},
16+
"ghcr.io/devcontainers/features/python:1": {
17+
"installTools": true,
18+
"version": "latest",
19+
"toolsToInstall": "pre-commit"
20+
},
21+
"ghcr.io/devcontainers-extra/features/fish-apt-get:1": {}
2822
},
29-
// Add the IDs of extensions you want installed when the container is created.
30-
"extensions": [
31-
"davidanson.vscode-markdownlint",
32-
"github.vscode-pull-request-github",
33-
"golang.Go",
34-
"redhat.vscode-yaml"
35-
],
23+
"customizations": {
24+
"vscode": {
25+
"extensions": [
26+
"golang.go",
27+
"ms-vscode.makefile-tools"
28+
]
29+
}
30+
}
3631
// Use 'forwardPorts' to make a list of ports inside the container available locally.
3732
// "forwardPorts": [],
3833
// Use 'postCreateCommand' to run commands after the container is created.
39-
"postCreateCommand": "python3 -m pip install pre-commit && pre-commit install -t pre-commit -t commit-msg --install-hooks",
40-
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
41-
"remoteUser": "vscode",
42-
"features": {
43-
"git": "latest",
44-
"github-cli": "latest",
45-
"python": "latest",
46-
}
34+
// "postCreateCommand": "go version",
35+
// Configure tool-specific properties.
36+
// "customizations": {},
37+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
38+
// "remoteUser": "root"
4739
}

.github/dependabot.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
---
12
# To get started with Dependabot version updates, you'll need to specify which
23
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
4+
# Please see the documentation for more information:
5+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
6+
# https://containers.dev/guide/dependabot
57

68
version: 2
79
updates:
10+
- package-ecosystem: "devcontainers"
11+
directory: "/"
12+
schedule:
13+
interval: weekly
814
- package-ecosystem: gomod
915
directory: "/"
1016
schedule:

0 commit comments

Comments
 (0)