|
1 | 1 | { |
2 | 2 | "name": "Swift", |
3 | | - "build": { |
4 | | - "dockerfile": "Dockerfile" |
5 | | - }, |
6 | | - "runArgs": [ |
7 | | - "--cap-add=SYS_PTRACE", |
8 | | - "--security-opt", |
9 | | - "seccomp=unconfined" |
10 | | - ], |
| 3 | + "image": "swift:${templateOption:imageVariant}", |
| 4 | + "features": { |
| 5 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 6 | + "installZsh": "false", |
| 7 | + "username": "vscode", |
| 8 | + "userUid": "1000", |
| 9 | + "userGid": "1000", |
| 10 | + "upgradePackages": "false" |
| 11 | + }, |
| 12 | + "ghcr.io/devcontainers/features/git:1": { |
| 13 | + "version": "os-provided", |
| 14 | + "ppa": "false" |
| 15 | + } |
| 16 | + }, |
| 17 | + "runArgs": [ |
| 18 | + "--cap-add=SYS_PTRACE", |
| 19 | + "--security-opt", |
| 20 | + "seccomp=unconfined" |
| 21 | + ], |
| 22 | + // Configure tool-specific properties. |
| 23 | + "customizations": { |
| 24 | + // Configure properties specific to VS Code. |
| 25 | + "vscode": { |
| 26 | + // Set *default* container specific settings.json values on container create. |
| 27 | + "settings": { |
| 28 | + "lldb.library": "/usr/lib/liblldb.so" |
| 29 | + }, |
| 30 | + // Add the IDs of extensions you want installed when the container is created. |
| 31 | + "extensions": [ |
| 32 | + "sswg.swift-lang" |
| 33 | + ] |
| 34 | + } |
| 35 | + }, |
| 36 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 37 | + // "forwardPorts": [], |
11 | 38 |
|
12 | | - // Configure tool-specific properties. |
13 | | - "customizations": { |
14 | | - // Configure properties specific to VS Code. |
15 | | - "vscode": { |
16 | | - // Set *default* container specific settings.json values on container create. |
17 | | - "settings": { |
18 | | - "lldb.library": "/usr/lib/liblldb.so" |
19 | | - }, |
20 | | - |
21 | | - // Add the IDs of extensions you want installed when the container is created. |
22 | | - "extensions": [ |
23 | | - "sswg.swift-lang" |
24 | | - ] |
25 | | - } |
26 | | - }, |
| 39 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 40 | + "postCreateCommand": "swift --version", |
27 | 41 |
|
28 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
29 | | - // "forwardPorts": [], |
30 | | - |
31 | | - // Use 'postCreateCommand' to run commands after the container is created. |
32 | | - // "postCreateCommand": "", |
33 | | - |
34 | | - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
35 | | - "remoteUser": "vscode" |
| 42 | + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 43 | + "remoteUser": "vscode" |
36 | 44 | } |
0 commit comments