Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| *Contributors* | [0xTim](https://github.com/0xTim), [adam-fowler](https://github.com/adam-fowler), [cloudnull](https://github.com/cloudnull) |
| *Categories* | Community, Languages |
| *Definition type* | Dockerfile |
| *Supported architecture(s)* | x86-64 |
| *Supported architecture(s)* | x86-64, arm64 |
| *Works in Codespaces* | Yes |
| *Container host OS support* | Linux, macOS, Windows |
| *Container OS* | Debian |
Expand All @@ -20,14 +20,14 @@
While the definition itself works unmodified, you can select the version of Swift the container uses by updating the `VARIANT` arg in the included `devcontainer.json` (and rebuilding if you've already created the container).

```json
"args": { "VARIANT": "4" }
"args": { "VARIANT": "5.7" }
```

Given how frequently web applications use Node.js for front end code, this container also includes an optional install of Node.js. You can enable installation and change the version of Node.js installed or disable its installation by updating the `args` property in `.devcontainer/devcontainer.json`.

```jsonc
"args": {
"VARIANT": "4",
"VARIANT": "5.7",
"NODE_VERSION": "14" // Set to "none" to skip Node.js installation
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/swift/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Choice] Swift version: 5.6-focal, 5.5, 5.4, 5.3, 5.2, 5.1, 4.2
# [Choice] Swift version: 5.7, 5.6-focal, 5.5, 5.4, 5.3, 5.2, 5.1, 4.2
ARG VARIANT=${templateOption:imageVariant}
FROM swift:${VARIANT}

Expand Down
5 changes: 3 additions & 2 deletions src/swift/devcontainer-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "swift",
"version": "1.0.0",
"name": "Swift",
"description": "Develop Swift based applications. Includes everything you need to get up and running.",
"description": "Develop Swift based applications. Includes appropriate runtime args and everything you need to get up and running.",
"documentationURL": "https://github.com/microsoft/vscode-dev-containers/tree/main/containers/swift",
"publisher": "Community",
"licenseURL": "https://github.com/microsoft/vscode-dev-containers/blob/main/LICENSE",
Expand All @@ -11,6 +11,7 @@
"type": "string",
"description": "Swift version:",
"proposals": [
"5.7",
"5.6-focal",
"5.5",
"5.4",
Expand All @@ -19,7 +20,7 @@
"5.1",
"4.2"
],
"default": "5.6-focal"
"default": "5.7"
},
"installZsh": {
"type": "boolean",
Expand Down