Skip to content

Commit a225405

Browse files
Adds support for Cpp 24.04 and Typescript-node 22
1 parent 904a62a commit a225405

File tree

10 files changed

+50
-38
lines changed

10 files changed

+50
-38
lines changed

src/cpp/.devcontainer/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# [Choice] Debian / Ubuntu version (use Debian 12, Debian 11, Ubuntu 22.04 on local arm64/Apple Silicon): debian-12, debian-11, debian-10, ubuntu-22.04, ubuntu-20.04
21
ARG VARIANT=debian-12
32
FROM mcr.microsoft.com/devcontainers/base:${VARIANT}
43
USER root

src/cpp/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published images* | mcr.microsoft.com/devcontainers/cpp |
12-
| *Available image variants* | debian-12, debian-11, debian-10, ubuntu-22.04, ubuntu-20.04 ([full list](https://mcr.microsoft.com/v2/devcontainers/cpp/tags/list)) |
13-
| *Published image architecture(s)* | x86-64, aarch64/arm64 for `debian-12`, `debian-11`,and `ubuntu-22.04` variants |
12+
| *Available image variants* | debian-12, debian-11, debian-10, ubuntu-24.04, ubuntu-22.04, ubuntu-20.04 ([full list](https://mcr.microsoft.com/v2/devcontainers/cpp/tags/list)) |
13+
| *Published image architecture(s)* | x86-64, aarch64/arm64 for `debian-12`, `debian-11`, `ubuntu-24.04` and `ubuntu-22.04` variants |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Debian, Ubuntu |
1616
| *Languages, platforms* | C++ |
@@ -27,6 +27,7 @@ You can directly reference pre-built versions of `Dockerfile` by using the `imag
2727
- `mcr.microsoft.com/devcontainers/cpp:debian-11` (or `bullseye`)
2828
- `mcr.microsoft.com/devcontainers/cpp:debian-10` (or `buster`)
2929
- `mcr.microsoft.com/devcontainers/cpp:ubuntu` (latest Ubuntu LTS)
30+
- `mcr.microsoft.com/devcontainers/cpp:ubuntu-24.04` (or `noble`)
3031
- `mcr.microsoft.com/devcontainers/cpp:ubuntu-22.04` (or `jammy`)
3132
- `mcr.microsoft.com/devcontainers/cpp:ubuntu-20.04` (or `focal`)
3233

src/cpp/manifest.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"bookworm",
55
"bullseye",
66
"buster",
7+
"noble",
78
"jammy",
89
"focal"
910
],
@@ -13,6 +14,7 @@
1314
"bookworm": "base-debian",
1415
"bullseye": "base-debian",
1516
"buster": "base-debian",
17+
"noble": "base-ubuntu",
1618
"jammy": "base-ubuntu",
1719
"focal": "base-ubuntu"
1820
},
@@ -29,6 +31,10 @@
2931
"buster": [
3032
"linux/amd64"
3133
],
34+
"noble": [
35+
"linux/amd64",
36+
"linux/arm64"
37+
],
3238
"jammy": [
3339
"linux/amd64",
3440
"linux/arm64"
@@ -56,6 +62,10 @@
5662
"cpp:${VERSION}-debian-10",
5763
"cpp:${VERSION}-debian10"
5864
],
65+
"noble": [
66+
"cpp:${VERSION}-ubuntu-24.04",
67+
"cpp:${VERSION}-ubuntu24.04"
68+
],
5969
"jammy": [
6070
"cpp:${VERSION}-ubuntu-22.04",
6171
"cpp:${VERSION}-ubuntu22.04"

src/typescript-node/.devcontainer/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# [Choice] Node.js version (use -bookworm, or -bullseye variants on local arm64/Apple Silicon): 20, 18, 20-bookworm, 18-bookworm, 20-bullseye, 18-bullseye, 20-buster, 18-buster
2-
ARG VARIANT=20-bookworm
1+
ARG VARIANT=22-bookworm
32
FROM mcr.microsoft.com/devcontainers/javascript-node:1-${VARIANT}
43

54
# Install tslint, typescript. eslint is installed by javascript image

src/typescript-node/README.md

Lines changed: 5 additions & 4 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* | 20 / 20-bookworm, 18 / 18-bookworm, 20-bullseye, 18-bullseye, 20-buster, 18-buster ([full list](https://mcr.microsoft.com/v2/devcontainers/typescript-node/tags/list)) |
12+
| *Available image variants* | 22 / 22-bookworm, 20 / 20-bookworm, 18 / 18-bookworm, 22-bullseye, 20-bullseye, 18-bullseye, 20-buster, 18-buster ([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,16 +20,17 @@
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:22` (or `22-bookworm`, `22-bullseye` to pin to an OS version)
2324
- `mcr.microsoft.com/devcontainers/typescript-node:20` (or `20-bookworm`, `20-bullseye`, `20-buster` to pin to an OS version)
2425
- `mcr.microsoft.com/devcontainers/typescript-node:18` (or `18-bookworm`, `18-bullseye`, `18-buster` 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:1-20` (or `1-20-bookworm`, `1-20-bullseye`, `1-20-buster`)
31-
- `mcr.microsoft.com/devcontainers/typescript-node:1.0-20` (or `1.0-20-bookworm`, `1.0-20-bullseye`, `1.0-20-buster`)
32-
- `mcr.microsoft.com/devcontainers/typescript-node:1.0.0-20` (or `1.0.0-20-bookworm`, `1.0.0-20-bullseye`, `1.0.0-20-buster`)
31+
- `mcr.microsoft.com/devcontainers/typescript-node:1-22` (or `1-22-bookworm`, `1-22-bullseye`)
32+
- `mcr.microsoft.com/devcontainers/typescript-node:1.1-22` (or `1.1-22-bookworm`, `1.1-22-bullseye`)
33+
- `mcr.microsoft.com/devcontainers/typescript-node:1.1.0-22` (or `1.1.0-20-bookworm`, `1.1.0-20-bullseye`)
3334

3435
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.
3536

src/typescript-node/manifest.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
{
22
"version": "1.0.12",
33
"variants": [
4+
"22-bookworm",
45
"20-bookworm",
56
"18-bookworm",
7+
"22-bullseye",
68
"20-bullseye",
79
"18-bullseye",
810
"20-buster",
911
"18-buster"
1012
],
1113
"build": {
12-
"latest": "20-bookworm",
14+
"latest": "22-bookworm",
1315
"rootDistro": "debian",
1416
"parent": "javascript-node",
1517
"architectures": {
18+
"22-bookworm": [
19+
"linux/amd64",
20+
"linux/arm64"
21+
],
1622
"20-bookworm": [
1723
"linux/amd64",
1824
"linux/arm64"
@@ -21,6 +27,10 @@
2127
"linux/amd64",
2228
"linux/arm64"
2329
],
30+
"22-bullseye": [
31+
"linux/amd64",
32+
"linux/arm64"
33+
],
2434
"20-bullseye": [
2535
"linux/amd64",
2636
"linux/arm64"
@@ -40,13 +50,19 @@
4050
"typescript-node:${VERSION}-${VARIANT}"
4151
],
4252
"variantTags": {
43-
"20-bookworm": [
44-
"typescript-node:${VERSION}-20",
53+
"22-bookworm": [
54+
"typescript-node:${VERSION}-22",
4555
"typescript-node:${VERSION}-bookworm"
4656
],
57+
"20-bookworm": [
58+
"typescript-node:${VERSION}-20"
59+
],
4760
"18-bookworm": [
4861
"typescript-node:${VERSION}-18"
4962
],
63+
"22-bullseye": [
64+
"typescript-node:${VERSION}-bullseye"
65+
],
5066
"20-bullseye": [
5167
"typescript-node:${VERSION}-bullseye"
5268
],

src/typescript-node/test-project/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/typescript-node/test-project/.eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports={
2+
"rules": {
3+
"no-console": 0,
4+
"eqeqeq":"warn",
5+
"no-cond-assign": 0,
6+
"no-unused-vars": 1,
7+
"no-extra-semi": "warn",
8+
"semi": "warn"
9+
},
10+
ignorePatterns: ["**/node_modules/**"]
11+
};

src/typescript-node/test-project/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ check "node" node --version
1111
sudo rm -f yarn.lock
1212
check "yarn" yarn install
1313
sudo rm -f package-lock.json
14-
check "eslint" eslint --no-eslintrc -c .eslintrc.json src/server.ts
14+
check "eslint" eslint --no-warn-ignored src/server.ts
1515
check "typescript" npm run compile
1616
check "test-project" npm run test
1717
npm config delete prefix

0 commit comments

Comments
 (0)