|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/go
|
3 | 3 | {
|
4 |
| - "name": "Go", |
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-bullseye", |
12 |
| - // Options |
13 |
| - "NODE_VERSION": "lts/*" |
14 |
| - } |
15 |
| - }, |
16 |
| - "runArgs": [ "--init", "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], |
17 |
| - |
18 |
| - // Set *default* container specific settings.json values on container create. |
19 |
| - "settings": { |
20 |
| - "go.toolsManagement.checkForUpdates": "local", |
21 |
| - "go.useLanguageServer": true, |
22 |
| - "go.gopath": "/go", |
23 |
| - "go.goroot": "/usr/local/go" |
24 |
| - }, |
25 |
| - |
26 |
| - // Add the IDs of extensions you want installed when the container is created. |
27 |
| - "extensions": [ |
28 |
| - "golang.Go" |
29 |
| - ], |
30 |
| - |
31 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
32 |
| - // "forwardPorts": [], |
33 |
| - |
34 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
35 |
| - // "postCreateCommand": "go version", |
36 |
| - |
37 |
| - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
38 |
| - "remoteUser": "vscode" |
| 4 | + "name": "Go", |
| 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-bullseye", |
| 12 | + // Options |
| 13 | + "NODE_VERSION": "lts/*" |
| 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", |
| 28 | + "lithia.path": ["go", "run", "./app/lithia"] |
| 29 | + }, |
| 30 | + // Add the IDs of extensions you want installed when the container is created. |
| 31 | + "extensions": ["golang.Go", "vknabel.vscode-lithia"], |
| 32 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 33 | + // "forwardPorts": [], |
| 34 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 35 | + // "postCreateCommand": "go version", |
| 36 | + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 37 | + "remoteUser": "vscode" |
39 | 38 | }
|
0 commit comments