Skip to content

Commit 777b69b

Browse files
[javascript-node] - Add support for debian trixie(13) (devcontainers#1515)
* [javascript-node] - Add support for debian trixie(13) * Correction in variantTags --------- Co-authored-by: Álvaro Rausell Guiard <33221237+AlvaroRausell@users.noreply.github.com>
1 parent 02580ea commit 777b69b

File tree

3 files changed

+33
-15
lines changed

3 files changed

+33
-15
lines changed

src/javascript-node/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT=24-bookworm
1+
ARG VARIANT=24-trixie
22
FROM node:${VARIANT}
33

44
ARG USERNAME=node

src/javascript-node/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published image* | mcr.microsoft.com/devcontainers/javascript-node |
12-
| *Available image variants* | 24 / 24-bookworm, 22 / 22-bookworm, 20 / 20-bookworm, 24-bullseye, 22-bullseye, 20-bullseye, ([full list](https://mcr.microsoft.com/v2/devcontainers/javascript-node/tags/list)) |
12+
| *Available image variants* | 24 / 24-trixie, 22 / 22-trixie, 20 / 20-trixie, 24-bookworm, 22-bookworm, 20-bookworm, 24-bullseye, 22-bullseye, 20-bullseye, ([full list](https://mcr.microsoft.com/v2/devcontainers/javascript-node/tags/list)) |
1313
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, and `bullseye` variants |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Debian |
@@ -20,19 +20,19 @@
2020
You can directly reference pre-built versions of `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.
2121

2222
- `mcr.microsoft.com/devcontainers/javascript-node` (latest)
23-
- `mcr.microsoft.com/devcontainers/javascript-node:24` (or `24-bookworm`, `24-bullseye` to pin to an OS version)
24-
- `mcr.microsoft.com/devcontainers/javascript-node:22` (or `22-bookworm`, `22-bullseye` to pin to an OS version)
25-
- `mcr.microsoft.com/devcontainers/javascript-node:20` (or `20-bookworm`, `20-bullseye` to pin to an OS version)
23+
- `mcr.microsoft.com/devcontainers/javascript-node:24` (or `24-trixie`, `24-bookworm`, `24-bullseye` to pin to an OS version)
24+
- `mcr.microsoft.com/devcontainers/javascript-node:22` (or `22-trixie`, `22-bookworm`, `22-bullseye` to pin to an OS version)
25+
- `mcr.microsoft.com/devcontainers/javascript-node:20` (or `20-trixie`, `20-bookworm`, `20-bullseye` to pin to an OS version)
2626

2727
Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.
2828

2929
You can decide how often you want updates by referencing a [semantic version](https://semver.org/) of each image. For example:
3030

31-
- `mcr.microsoft.com/devcontainers/javascript-node:2-24` (or `2-24-bookworm`, `2-24-bullseye`)
32-
- `mcr.microsoft.com/devcontainers/javascript-node:2.0-24` (or `2.0-24-bookworm`, `2.0-24-bullseye`)
33-
- `mcr.microsoft.com/devcontainers/javascript-node:2.0.0-24` (or `2.0.0-24-bookworm`, `2.0.0-24-bullseye`)
31+
- `mcr.microsoft.com/devcontainers/javascript-node:4-24` (or `4-24-trixie`, `4-24-bookworm`, `4-24-bullseye`)
32+
- `mcr.microsoft.com/devcontainers/javascript-node:4.0-24` (or `4.0-24-trixie`, `4.0-24-bookworm`, `3.0-24-bullseye`)
33+
- `mcr.microsoft.com/devcontainers/javascript-node:4.0.0-24` (or `4.0.0-24-trixie`, `4.0.0-24-bookworm`, `4.0.0-24-bullseye`)
3434

35-
However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `2-24`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
35+
However, we only do security patching on the latest [non-breaking, in support](https://github.com/devcontainers/images/issues/90) versions of images (e.g. `4-24`). You may want to run `apt-get update && apt-get upgrade` in your Dockerfile if you lock to a more specific version to at least pick up OS security updates.
3636

3737
Beyond Node.js and `git`, this image / `Dockerfile` includes `eslint`, `zsh`, [Oh My Zsh!](https://ohmyz.sh/), a non-root `node` user with `sudo` access, and a set of common dependencies for development. [Node Version Manager](https://github.com/nvm-sh/nvm) (`nvm`) is also included in case you need to use a different version of Node.js than the one included in the image.
3838

src/javascript-node/manifest.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"version": "3.0.3",
2+
"version": "4.0.0",
33
"variants": [
4+
"24-trixie",
5+
"22-trixie",
6+
"20-trixie",
47
"24-bookworm",
58
"22-bookworm",
69
"20-bookworm",
@@ -9,9 +12,21 @@
912
"20-bullseye"
1013
],
1114
"build": {
12-
"latest": "24-bookworm",
15+
"latest": "24-trixie",
1316
"rootDistro": "debian",
1417
"architectures": {
18+
"24-trixie": [
19+
"linux/amd64",
20+
"linux/arm64"
21+
],
22+
"22-trixie": [
23+
"linux/amd64",
24+
"linux/arm64"
25+
],
26+
"20-trixie": [
27+
"linux/amd64",
28+
"linux/arm64"
29+
],
1530
"24-bookworm": [
1631
"linux/amd64",
1732
"linux/arm64"
@@ -41,15 +56,18 @@
4156
"javascript-node:${VERSION}-${VARIANT}"
4257
],
4358
"variantTags": {
44-
"24-bookworm": [
59+
"24-trixie": [
4560
"javascript-node:${VERSION}-24",
46-
"javascript-node:${VERSION}-bookworm"
61+
"javascript-node:${VERSION}-trixie"
4762
],
48-
"22-bookworm": [
63+
"22-trixie": [
4964
"javascript-node:${VERSION}-22"
5065
],
51-
"20-bookworm": [
66+
"20-trixie": [
5267
"javascript-node:${VERSION}-20"
68+
],
69+
"24-bookworm": [
70+
"javascript-node:${VERSION}-bookworm"
5371
],
5472
"24-bullseye": [
5573
"javascript-node:${VERSION}-bullseye"

0 commit comments

Comments
 (0)