Skip to content

Commit 6d7c437

Browse files
authored
Support Ruby 3.4 (#1276)
* Upgrade Ruby to 3.4 * Added Ruby 3.4 reference in Dockerfile. * Update README.md to correct a typo error regarding Ruby 3.4 reference
1 parent 67ccd80 commit 6d7c437

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

src/ruby/.devcontainer/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.3, 3.2, 3.1, 3-bookworm, 3.3-bookworm, 3.2-bookworm, 3.1-bookworm, 3-bullseye, 3.3-bullseye, 3.2-bullseye, 3.1-bullseye, 3-buster, 3.2-buster 3.1-buster
1+
# [Choice] Ruby version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.4, 3.3, 3.2, 3.1, 3-bookworm, 3.4-bookworm, 3.3-bookworm, 3.2-bookworm, 3.1-bookworm, 3-bullseye, 3.4-bullseye, 3.3-bullseye, 3.2-bullseye, 3.1-bullseye, 3-buster, 3.2-buster 3.1-buster
22
ARG VARIANT=3-bookworm
33
FROM ruby:${VARIANT}
44

@@ -14,4 +14,4 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1414
# RUN gem install <your-gem-names-here>
1515

1616
# [Optional] Uncomment this line to install global node packages.
17-
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
17+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

src/ruby/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published images* | mcr.microsoft.com/devcontainers/ruby |
12-
| *Available image variants* | 3 / 3-bookworm, 3.3 / 3.3-bookworm, 3.2 / 3.2-bookworm, 3.1 / 3.1-bookworm, 3-bullseye, 3.3-bullseye, 3.2-bullseye, 3.1-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/ruby/tags/list)) |
12+
| *Available image variants* | 3 / 3-bookworm, 3.4 / 3.4-bookworm, 3.3 / 3.3-bookworm, 3.2 / 3.2-bookworm, 3.1 / 3.1-bookworm, 3-bullseye, 3.4-bullseye, 3.3-bullseye, 3.2-bullseye, 3.1-bullseye ([full list](https://mcr.microsoft.com/v2/devcontainers/ruby/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 |
@@ -23,6 +23,7 @@ You can directly reference pre-built versions of `Dockerfile` by using the `imag
2323

2424
- `mcr.microsoft.com/devcontainers/ruby` (latest)
2525
- `mcr.microsoft.com/devcontainers/ruby:3` (or `3-bookworm`, `3-bullseye` to pin to an OS version)
26+
- `mcr.microsoft.com/devcontainers/ruby:3.4` (or `3.4-bookworm`, `3.4-bullseye` to pin to an OS version)
2627
- `mcr.microsoft.com/devcontainers/ruby:3.3` (or `3.3-bookworm`, `3.3-bullseye` to pin to an OS version)
2728
- `mcr.microsoft.com/devcontainers/ruby:3.2` (or `3.2-bookworm`, `3.2-bullseye` to pin to an OS version)
2829
- `mcr.microsoft.com/devcontainers/ruby:3.1` (or `3.1-bookworm`, `3.1-bullseye` to pin to an OS version)

src/ruby/manifest.json

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
22
"version": "1.1.14",
33
"variants": [
4+
"3.4-bookworm",
45
"3.3-bookworm",
56
"3.2-bookworm",
67
"3.1-bookworm",
8+
"3.4-bullseye",
79
"3.3-bullseye",
810
"3.2-bullseye",
911
"3.1-bullseye"
1012
],
1113
"build": {
12-
"latest": "3.3-bookworm",
14+
"latest": "3.4-bookworm",
1315
"rootDistro": "debian",
1416
"architectures": {
17+
"3.4-bookworm": [
18+
"linux/amd64",
19+
"linux/arm64"
20+
],
1521
"3.3-bookworm": [
1622
"linux/amd64",
1723
"linux/arm64"
@@ -24,6 +30,10 @@
2430
"linux/amd64",
2531
"linux/arm64"
2632
],
33+
"3.4-bullseye": [
34+
"linux/amd64",
35+
"linux/arm64"
36+
],
2737
"3.3-bullseye": [
2838
"linux/amd64",
2939
"linux/arm64"
@@ -41,22 +51,28 @@
4151
"ruby:${VERSION}-${VARIANT}"
4252
],
4353
"variantTags": {
44-
"3.3-bookworm": [
54+
"3.4-bookworm": [
4555
"ruby:${VERSION}-3",
46-
"ruby:${VERSION}-3.3",
56+
"ruby:${VERSION}-3.4",
4757
"ruby:${VERSION}-3-bookworm",
4858
"ruby:${VERSION}-bookworm"
4959
],
60+
"3.3-bookworm": [
61+
"ruby:${VERSION}-3.3"
62+
],
5063
"3.2-bookworm": [
5164
"ruby:${VERSION}-3.2"
5265
],
5366
"3.1-bookworm": [
5467
"ruby:${VERSION}-3.1"
5568
],
56-
"3.3-bullseye": [
69+
"3.4-bullseye": [
5770
"ruby:${VERSION}-3-bullseye",
5871
"ruby:${VERSION}-bullseye"
5972
],
73+
"3.3-bullseye": [
74+
"ruby:${VERSION}-3.3-bullseye"
75+
],
6076
"3.2-bullseye": [
6177
"ruby:${VERSION}-3.2-bullseye"
6278
]

0 commit comments

Comments
 (0)