Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit e09f796

Browse files
authored
Pre-build arm64 image for Alpine base (#1069)
1 parent b61b56c commit e09f796

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

containers/alpine/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"build": {
44
"dockerfile": "Dockerfile",
55
// Update 'VARIANT' to pick an Alpine version: 3.11, 3.12, 3.13, 3.14
6-
"args": { "VARIANT": "3.13" }
6+
"args": { "VARIANT": "3.14" }
77
},
88

99
// Set *default* container specific settings.json values on container create.

containers/alpine/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
| *Categories* | Core, Other |
1111
| *Definition type* | Dockerfile |
1212
| *Published images* | mcr.microsoft.com/vscode/devcontainers/base:alpine |
13-
| *Available image variants* | 3.11, 3.12, 3.13, 3.14 ([full list](https://mcr.microsoft.com/v2/vscode/devcontainers/base/tags/list)) |
14-
| *Published image architecture(s)* | x86-64 |
13+
| *Available image variants* | 3.14, 3.13, 3.12, 3.11 ([full list](https://mcr.microsoft.com/v2/vscode/devcontainers/base/tags/list)) |
14+
| *Published image architecture(s)* | x86-64, aarch64/arm64 |
1515
| *Works in Codespaces* | Yes |
1616
| *Container host OS support* | Linux, macOS, Windows |
1717
| *Container OS* | Alpine Linux |
@@ -24,7 +24,7 @@ See **[history](history)** for information on the contents of published images.
2424
While the definition itself works unmodified, you can select the version of Alpine the container uses by updating the `VARIANT` arg in the included `devcontainer.json` (and rebuilding if you've already created the container).
2525

2626
```json
27-
"args": { "VARIANT": "3.12" }
27+
"args": { "VARIANT": "3.13" }
2828
```
2929

3030
You can also directly reference pre-built versions of `.devcontainer/base.Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to one of the following. An example `Dockerfile` is included in this repository.

containers/alpine/definition-manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"variants": ["3.14", "3.13", "3.12", "3.11"],
3-
"definitionVersion": "0.202.2",
3+
"definitionVersion": "0.203.0",
44
"build": {
55
"latest": false,
66
"rootDistro": "alpine",
7+
"architectures": ["linux/amd64","linux/arm64"],
78
"tags": [
89
"base:${VERSION}-alpine-${VARIANT}",
910
"base:${VERSION}-alpine${VARIANT}"
1011
],
1112
"variantTags": {
12-
"3.13": [
13+
"3.14": [
1314
"base:${VERSION}-alpine"
1415
]
1516
}

0 commit comments

Comments
 (0)