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