From a61045f47ac94eaf68c00b774f5995bbac9c7c87 Mon Sep 17 00:00:00 2001 From: Leo Dion Date: Tue, 5 Nov 2024 13:57:31 -0500 Subject: [PATCH] fixup! adding dev container --- .devcontainer/devcontainer.json | 9 ++---- .devcontainer/swift-5.9/devcontainer.json | 39 +++++++++++++++++++++++ .devcontainer/swift-6.0/devcontainer.json | 39 +++++++++++++++++++++++ 3 files changed, 80 insertions(+), 7 deletions(-) create mode 100644 .devcontainer/swift-5.9/devcontainer.json create mode 100644 .devcontainer/swift-6.0/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a1a23c9..068475e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,12 +1,10 @@ { "name": "Swift", - "image": "swift:6.0-noble", + "image": "swift:6.0", "features": { "ghcr.io/devcontainers/features/common-utils:2": { "installZsh": "false", "username": "vscode", - "userUid": "1001", - "userGid": "1001", "upgradePackages": "false" }, "ghcr.io/devcontainers/features/git:1": { @@ -36,9 +34,6 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - "postCreateCommand": "swift --version", - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" -} \ No newline at end of file +} diff --git a/.devcontainer/swift-5.9/devcontainer.json b/.devcontainer/swift-5.9/devcontainer.json new file mode 100644 index 0000000..0da5c5f --- /dev/null +++ b/.devcontainer/swift-5.9/devcontainer.json @@ -0,0 +1,39 @@ +{ + "name": "Swift", + "image": "swift:5.9", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": "false", + "username": "vscode", + "upgradePackages": "false" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "os-provided", + "ppa": "false" + } + }, + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" + ], + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "lldb.library": "/usr/lib/liblldb.so" + }, + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "sswg.swift-lang" + ] + } + }, + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "root" +} diff --git a/.devcontainer/swift-6.0/devcontainer.json b/.devcontainer/swift-6.0/devcontainer.json new file mode 100644 index 0000000..068475e --- /dev/null +++ b/.devcontainer/swift-6.0/devcontainer.json @@ -0,0 +1,39 @@ +{ + "name": "Swift", + "image": "swift:6.0", + "features": { + "ghcr.io/devcontainers/features/common-utils:2": { + "installZsh": "false", + "username": "vscode", + "upgradePackages": "false" + }, + "ghcr.io/devcontainers/features/git:1": { + "version": "os-provided", + "ppa": "false" + } + }, + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" + ], + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Set *default* container specific settings.json values on container create. + "settings": { + "lldb.library": "/usr/lib/liblldb.so" + }, + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "sswg.swift-lang" + ] + } + }, + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "vscode" +}