Skip to content

Commit a313f23

Browse files
Support: typescript-node 24 (devcontainers#1447)
* Support: typescript-node 24 * chore: version up semantic version * Upgrade to `javascript-node:3` --------- Co-authored-by: Álvaro Rausell Guiard <33221237+AlvaroRausell@users.noreply.github.com>
1 parent a3af594 commit a313f23

File tree

4 files changed

+46
-15
lines changed

4 files changed

+46
-15
lines changed

cgmanifest.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,16 @@
12481248
}
12491249
}
12501250
},
1251+
{
1252+
"Component": {
1253+
"Type": "other",
1254+
"Other": {
1255+
"Name": "Docker Image: node",
1256+
"Version": "24-bookworm",
1257+
"DownloadUrl": "https://hub.docker.com/_/node"
1258+
}
1259+
}
1260+
},
12511261
{
12521262
"Component": {
12531263
"Type": "other",
@@ -1278,6 +1288,16 @@
12781288
}
12791289
}
12801290
},
1291+
{
1292+
"Component": {
1293+
"Type": "other",
1294+
"Other": {
1295+
"Name": "Docker Image: node",
1296+
"Version": "24-bullseye",
1297+
"DownloadUrl": "https://hub.docker.com/_/node"
1298+
}
1299+
}
1300+
},
12811301
{
12821302
"Component": {
12831303
"Type": "other",

src/typescript-node/.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ARG VARIANT=22-bookworm
2-
FROM mcr.microsoft.com/devcontainers/javascript-node:1-${VARIANT}
1+
ARG VARIANT=24-bookworm
2+
FROM mcr.microsoft.com/devcontainers/javascript-node:3-${VARIANT}
33

44
# Install tslint, typescript. eslint is installed by javascript image
55
ARG NODE_MODULES="tslint-to-eslint-config typescript"

src/typescript-node/README.md

Lines changed: 6 additions & 5 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/typescript-node |
12-
| *Available image variants* | 22 / 22-bookworm, 20 / 20-bookworm, 22-bullseye, 20-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/typescript-node/tags/list)) |
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/typescript-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,18 +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/typescript-node` (latest)
23+
- `mcr.microsoft.com/devcontainers/typescript-node:24` (or `24-bookworm`, `24-bullseye` to pin to an OS version)
2324
- `mcr.microsoft.com/devcontainers/typescript-node:22` (or `22-bookworm`, `22-bullseye` to pin to an OS version)
2425
- `mcr.microsoft.com/devcontainers/typescript-node:20` (or `20-bookworm`, `20-bullseye` to pin to an OS version)
2526

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

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

30-
- `mcr.microsoft.com/devcontainers/typescript-node:2-22` (or `2-22-bookworm`, `2-22-bullseye`)
31-
- `mcr.microsoft.com/devcontainers/typescript-node:2.0-22` (or `2.0-22-bookworm`, `2.0-22-bullseye`)
32-
- `mcr.microsoft.com/devcontainers/typescript-node:2.0.0-22` (or `2.0.0-22-bookworm`, `2.0.0-22-bullseye`)
31+
- `mcr.microsoft.com/devcontainers/typescript-node:3-24` (or `3-24-bookworm`, `3-24-bullseye`)
32+
- `mcr.microsoft.com/devcontainers/typescript-node:3.0-24` (or `3.0-24-bookworm`, `3.0-24-bullseye`)
33+
- `mcr.microsoft.com/devcontainers/typescript-node:3.0.0-24` (or `3.0.0-24-bookworm`, `3.0.0-24-bullseye`)
3334

34-
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. `1-1.20`). 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. `3-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.
3536

3637
Beyond TypeScript, 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. Since `tslint` is [now fully deprecated](https://github.com/palantir/tslint/issues/4534), the image includes `tslint-to-eslint-config` globally to help you migrate.
3738

src/typescript-node/manifest.json

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
2-
"version": "2.0.2",
2+
"version": "3.0.0",
33
"variants": [
4+
"24-bookworm",
45
"22-bookworm",
56
"20-bookworm",
7+
"24-bullseye",
68
"22-bullseye",
79
"20-bullseye"
810
],
911
"build": {
10-
"latest": "22-bookworm",
12+
"latest": "24-bookworm",
1113
"rootDistro": "debian",
1214
"parent": "javascript-node",
1315
"architectures": {
16+
"24-bookworm": [
17+
"linux/amd64",
18+
"linux/arm64"
19+
],
1420
"22-bookworm": [
1521
"linux/amd64",
1622
"linux/arm64"
@@ -19,6 +25,10 @@
1925
"linux/amd64",
2026
"linux/arm64"
2127
],
28+
"24-bullseye": [
29+
"linux/amd64",
30+
"linux/arm64"
31+
],
2232
"22-bullseye": [
2333
"linux/amd64",
2434
"linux/arm64"
@@ -32,17 +42,17 @@
3242
"typescript-node:${VERSION}-${VARIANT}"
3343
],
3444
"variantTags": {
35-
"22-bookworm": [
36-
"typescript-node:${VERSION}-22",
45+
"24-bookworm": [
46+
"typescript-node:${VERSION}-24",
3747
"typescript-node:${VERSION}-bookworm"
3848
],
49+
"22-bookworm": [
50+
"typescript-node:${VERSION}-22"
51+
],
3952
"20-bookworm": [
4053
"typescript-node:${VERSION}-20"
4154
],
42-
"22-bullseye": [
43-
"typescript-node:${VERSION}-bullseye"
44-
],
45-
"20-bullseye": [
55+
"24-bullseye": [
4656
"typescript-node:${VERSION}-bullseye"
4757
]
4858
}

0 commit comments

Comments
 (0)