|
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.217.4/containers/ubuntu |
3 | 1 | {
|
4 | 2 | "name": "Ubuntu",
|
5 |
| - "build": { |
6 |
| - "dockerfile": "Dockerfile", |
7 |
| - "args": { |
8 |
| - "VARIANT": "jammy" |
9 |
| - } |
10 |
| - }, |
11 |
| - // Set *default* container specific settings.json values on container create. |
12 |
| - "settings": { |
13 |
| - "go.toolsManagement.checkForUpdates": "local", |
14 |
| - "go.addTags": { |
15 |
| - "tags": "json", |
16 |
| - "options": "json=omitempty", |
17 |
| - "promptForTags": false, |
18 |
| - "transform": "snakecase", |
19 |
| - "template": "" |
20 |
| - }, |
21 |
| - "go.useLanguageServer": true, |
22 |
| - "go.gopath": "/go", |
23 |
| - "go.goroot": "/usr/local/go" |
24 |
| - }, |
25 |
| - "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], |
26 |
| - // Add the IDs of extensions you want installed when the container is created. |
27 |
| - "extensions": [ |
28 |
| - "golang.Go", |
29 |
| - "eamodio.gitlens", |
30 |
| - "bradlc.vscode-tailwindcss", |
31 |
| - "esbenp.prettier-vscode", |
32 |
| - "GitHub.copilot" |
33 |
| - ], |
| 3 | + "image": "mcr.microsoft.com/devcontainers/base:0-jammy", |
| 4 | + |
34 | 5 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
35 | 6 | // "forwardPorts": [],
|
| 7 | + |
36 | 8 | // Use 'postCreateCommand' to run commands after the container is created.
|
37 |
| - // "postCreateCommand": "uname -a", |
38 |
| - // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
39 |
| - "remoteUser": "vscode", |
| 9 | + "postCreateCommand": "bash .devcontainer/setup.sh", |
| 10 | + |
| 11 | + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 12 | + "remoteUser": "root", |
40 | 13 | "features": {
|
41 |
| - "docker-in-docker": "latest", |
42 |
| - "git": "latest", |
43 |
| - "sshd": "latest", |
44 |
| - "node": "lts", |
45 |
| - "golang": "latest" |
| 14 | + "ghcr.io/devcontainers/features/go:1": {}, |
| 15 | + "ghcr.io/devcontainers/features/node:1": {} |
| 16 | + }, |
| 17 | + "customizations": { |
| 18 | + "vscode": { |
| 19 | + "extensions": ["golang.go", "heybourn.headwind", "esbenp.prettier-vscode", "bradlc.vscode-tailwindcss", "ms-vscode.makefile-tools", "redhat.vscode-yaml"] |
| 20 | + } |
46 | 21 | }
|
47 | 22 | }
|
0 commit comments