|
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 |
3 | 3 | {
|
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": {} |
28 | 22 | },
|
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 | + } |
36 | 31 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
37 | 32 | // "forwardPorts": [],
|
38 | 33 | // 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" |
47 | 39 | }
|
0 commit comments