Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ruby #17148

Merged
merged 1 commit into from
Jul 9, 2024
Merged

Update ruby #17148

merged 1 commit into from
Jul 9, 2024

Conversation

tianon
Copy link
Member

@tianon tianon commented Jul 9, 2024

Changes:

Changes:

- docker-library/ruby@2e432fc: Update 3.3 to 3.3.4
- docker-library/ruby@c069afc: Merge pull request docker-library/ruby#463 from infosiftr/mkdir-gem-home
- docker-library/ruby@f69cac9: Add more defensive `mkdir` for `GEM_HOME`
@tianon tianon requested a review from a team as a code owner July 9, 2024 16:08
Copy link

github-actions bot commented Jul 9, 2024

Diff for 4d68c6f:
diff --git a/_bashbrew-cat b/_bashbrew-cat
index 5cf2002..fdab2a2 100644
--- a/_bashbrew-cat
+++ b/_bashbrew-cat
@@ -3,120 +3,120 @@ GitRepo: https://github.com/docker-library/ruby.git
 
 Tags: 3.1.6-alpine3.19, 3.1-alpine3.19
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 74a48e2248ff94c6ebf93958070bafaf5cbdffcc
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.1/alpine3.19
 
 Tags: 3.1.6-alpine3.20, 3.1-alpine3.20, 3.1.6-alpine, 3.1-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
-GitCommit: 74a48e2248ff94c6ebf93958070bafaf5cbdffcc
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.1/alpine3.20
 
 Tags: 3.1.6-bookworm, 3.1-bookworm, 3.1.6, 3.1
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 74a48e2248ff94c6ebf93958070bafaf5cbdffcc
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.1/bookworm
 
 Tags: 3.1.6-bullseye, 3.1-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 74a48e2248ff94c6ebf93958070bafaf5cbdffcc
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.1/bullseye
 
 Tags: 3.1.6-slim-bookworm, 3.1-slim-bookworm, 3.1.6-slim, 3.1-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 74a48e2248ff94c6ebf93958070bafaf5cbdffcc
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.1/slim-bookworm
 
 Tags: 3.1.6-slim-bullseye, 3.1-slim-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 74a48e2248ff94c6ebf93958070bafaf5cbdffcc
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.1/slim-bullseye
 
 Tags: 3.2.4-alpine3.19, 3.2-alpine3.19
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: 53646d3dc96008bd20218a4d9aeb5695619fb4f7
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.2/alpine3.19
 
 Tags: 3.2.4-alpine3.20, 3.2-alpine3.20, 3.2.4-alpine, 3.2-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
-GitCommit: a4c6c26df171630eca259b1254a8b374c2eb0a43
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.2/alpine3.20
 
 Tags: 3.2.4-bookworm, 3.2-bookworm, 3.2.4, 3.2
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 53646d3dc96008bd20218a4d9aeb5695619fb4f7
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.2/bookworm
 
 Tags: 3.2.4-bullseye, 3.2-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 53646d3dc96008bd20218a4d9aeb5695619fb4f7
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.2/bullseye
 
 Tags: 3.2.4-slim-bookworm, 3.2-slim-bookworm, 3.2.4-slim, 3.2-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 53646d3dc96008bd20218a4d9aeb5695619fb4f7
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.2/slim-bookworm
 
 Tags: 3.2.4-slim-bullseye, 3.2-slim-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 53646d3dc96008bd20218a4d9aeb5695619fb4f7
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.2/slim-bullseye
 
-Tags: 3.3.3-alpine3.19, 3.3-alpine3.19, 3-alpine3.19, alpine3.19
+Tags: 3.3.4-alpine3.19, 3.3-alpine3.19, 3-alpine3.19, alpine3.19
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b8b0053a92b4f7232fe28c45e44a469c032affe2
+GitCommit: 2e432fc966a291fa241b14637557710d33a05b42
 Directory: 3.3/alpine3.19
 
-Tags: 3.3.3-alpine3.20, 3.3-alpine3.20, 3-alpine3.20, alpine3.20, 3.3.3-alpine, 3.3-alpine, 3-alpine, alpine
+Tags: 3.3.4-alpine3.20, 3.3-alpine3.20, 3-alpine3.20, alpine3.20, 3.3.4-alpine, 3.3-alpine, 3-alpine, alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
-GitCommit: b8b0053a92b4f7232fe28c45e44a469c032affe2
+GitCommit: 2e432fc966a291fa241b14637557710d33a05b42
 Directory: 3.3/alpine3.20
 
-Tags: 3.3.3-bookworm, 3.3-bookworm, 3-bookworm, bookworm, 3.3.3, 3.3, 3, latest
+Tags: 3.3.4-bookworm, 3.3-bookworm, 3-bookworm, bookworm, 3.3.4, 3.3, 3, latest
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b8b0053a92b4f7232fe28c45e44a469c032affe2
+GitCommit: 2e432fc966a291fa241b14637557710d33a05b42
 Directory: 3.3/bookworm
 
-Tags: 3.3.3-bullseye, 3.3-bullseye, 3-bullseye, bullseye
+Tags: 3.3.4-bullseye, 3.3-bullseye, 3-bullseye, bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b8b0053a92b4f7232fe28c45e44a469c032affe2
+GitCommit: 2e432fc966a291fa241b14637557710d33a05b42
 Directory: 3.3/bullseye
 
-Tags: 3.3.3-slim-bookworm, 3.3-slim-bookworm, 3-slim-bookworm, slim-bookworm, 3.3.3-slim, 3.3-slim, 3-slim, slim
+Tags: 3.3.4-slim-bookworm, 3.3-slim-bookworm, 3-slim-bookworm, slim-bookworm, 3.3.4-slim, 3.3-slim, 3-slim, slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b8b0053a92b4f7232fe28c45e44a469c032affe2
+GitCommit: 2e432fc966a291fa241b14637557710d33a05b42
 Directory: 3.3/slim-bookworm
 
-Tags: 3.3.3-slim-bullseye, 3.3-slim-bullseye, 3-slim-bullseye, slim-bullseye
+Tags: 3.3.4-slim-bullseye, 3.3-slim-bullseye, 3-slim-bullseye, slim-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b8b0053a92b4f7232fe28c45e44a469c032affe2
+GitCommit: 2e432fc966a291fa241b14637557710d33a05b42
 Directory: 3.3/slim-bullseye
 
 Tags: 3.4.0-preview1-alpine3.19, 3.4-rc-alpine3.19
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: bfd3f474cdaef7cf5ed6741bef80355c62e9ba2f
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.4-rc/alpine3.19
 
 Tags: 3.4.0-preview1-alpine3.20, 3.4-rc-alpine3.20, 3.4.0-preview1-alpine, 3.4-rc-alpine
 Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
-GitCommit: a4c6c26df171630eca259b1254a8b374c2eb0a43
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.4-rc/alpine3.20
 
 Tags: 3.4.0-preview1-bookworm, 3.4-rc-bookworm, 3.4.0-preview1, 3.4-rc
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: bfd3f474cdaef7cf5ed6741bef80355c62e9ba2f
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.4-rc/bookworm
 
 Tags: 3.4.0-preview1-bullseye, 3.4-rc-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: bfd3f474cdaef7cf5ed6741bef80355c62e9ba2f
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.4-rc/bullseye
 
 Tags: 3.4.0-preview1-slim-bookworm, 3.4-rc-slim-bookworm, 3.4.0-preview1-slim, 3.4-rc-slim
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: bfd3f474cdaef7cf5ed6741bef80355c62e9ba2f
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.4-rc/slim-bookworm
 
 Tags: 3.4.0-preview1-slim-bullseye, 3.4-rc-slim-bullseye
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: bfd3f474cdaef7cf5ed6741bef80355c62e9ba2f
+GitCommit: f69cac9888c7909b402a1bc21a87331429318aae
 Directory: 3.4-rc/slim-bullseye
diff --git a/_bashbrew-list b/_bashbrew-list
index 5a181a8..504a5e2 100644
--- a/_bashbrew-list
+++ b/_bashbrew-list
@@ -52,15 +52,15 @@ ruby:3.3-bullseye
 ruby:3.3-slim
 ruby:3.3-slim-bookworm
 ruby:3.3-slim-bullseye
-ruby:3.3.3
-ruby:3.3.3-alpine
-ruby:3.3.3-alpine3.19
-ruby:3.3.3-alpine3.20
-ruby:3.3.3-bookworm
-ruby:3.3.3-bullseye
-ruby:3.3.3-slim
-ruby:3.3.3-slim-bookworm
-ruby:3.3.3-slim-bullseye
+ruby:3.3.4
+ruby:3.3.4-alpine
+ruby:3.3.4-alpine3.19
+ruby:3.3.4-alpine3.20
+ruby:3.3.4-bookworm
+ruby:3.3.4-bullseye
+ruby:3.3.4-slim
+ruby:3.3.4-slim-bookworm
+ruby:3.3.4-slim-bullseye
 ruby:3.4-rc
 ruby:3.4-rc-alpine
 ruby:3.4-rc-alpine3.19
diff --git a/ruby_3.1-alpine/Dockerfile b/ruby_3.1-alpine/Dockerfile
index fd1ce50..7b0a19e 100644
--- a/ruby_3.1-alpine/Dockerfile
+++ b/ruby_3.1-alpine/Dockerfile
@@ -136,7 +136,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.1-alpine3.19/Dockerfile b/ruby_3.1-alpine3.19/Dockerfile
index b356930..ab93cb5 100644
--- a/ruby_3.1-alpine3.19/Dockerfile
+++ b/ruby_3.1-alpine3.19/Dockerfile
@@ -136,7 +136,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.1-bullseye/Dockerfile b/ruby_3.1-bullseye/Dockerfile
index 8b6e39e..245e907 100644
--- a/ruby_3.1-bullseye/Dockerfile
+++ b/ruby_3.1-bullseye/Dockerfile
@@ -90,7 +90,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.1-slim-bullseye/Dockerfile b/ruby_3.1-slim-bullseye/Dockerfile
index 66594ae..22a77ef 100644
--- a/ruby_3.1-slim-bullseye/Dockerfile
+++ b/ruby_3.1-slim-bullseye/Dockerfile
@@ -117,7 +117,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.1-slim/Dockerfile b/ruby_3.1-slim/Dockerfile
index 626c5ba..6d83ac0 100644
--- a/ruby_3.1-slim/Dockerfile
+++ b/ruby_3.1-slim/Dockerfile
@@ -117,7 +117,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.1/Dockerfile b/ruby_3.1/Dockerfile
index 3840529..3211192 100644
--- a/ruby_3.1/Dockerfile
+++ b/ruby_3.1/Dockerfile
@@ -90,7 +90,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.2-alpine/Dockerfile b/ruby_3.2-alpine/Dockerfile
index acafda5..1ff7186 100644
--- a/ruby_3.2-alpine/Dockerfile
+++ b/ruby_3.2-alpine/Dockerfile
@@ -160,7 +160,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.2-alpine3.19/Dockerfile b/ruby_3.2-alpine3.19/Dockerfile
index a8c92e9..926f649 100644
--- a/ruby_3.2-alpine3.19/Dockerfile
+++ b/ruby_3.2-alpine3.19/Dockerfile
@@ -160,7 +160,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.2-bullseye/Dockerfile b/ruby_3.2-bullseye/Dockerfile
index 2b070f6..e911735 100644
--- a/ruby_3.2-bullseye/Dockerfile
+++ b/ruby_3.2-bullseye/Dockerfile
@@ -114,7 +114,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.2-slim-bullseye/Dockerfile b/ruby_3.2-slim-bullseye/Dockerfile
index 23897b7..9045676 100644
--- a/ruby_3.2-slim-bullseye/Dockerfile
+++ b/ruby_3.2-slim-bullseye/Dockerfile
@@ -141,7 +141,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.2-slim/Dockerfile b/ruby_3.2-slim/Dockerfile
index bf66d8d..ae678bd 100644
--- a/ruby_3.2-slim/Dockerfile
+++ b/ruby_3.2-slim/Dockerfile
@@ -141,7 +141,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.2/Dockerfile b/ruby_3.2/Dockerfile
index 74ce1a0..b66ce50 100644
--- a/ruby_3.2/Dockerfile
+++ b/ruby_3.2/Dockerfile
@@ -114,7 +114,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.4-rc-alpine/Dockerfile b/ruby_3.4-rc-alpine/Dockerfile
index 3417b89..52e376e 100644
--- a/ruby_3.4-rc-alpine/Dockerfile
+++ b/ruby_3.4-rc-alpine/Dockerfile
@@ -158,7 +158,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.4-rc-alpine3.19/Dockerfile b/ruby_3.4-rc-alpine3.19/Dockerfile
index 9eb48f1..fa9b0d1 100644
--- a/ruby_3.4-rc-alpine3.19/Dockerfile
+++ b/ruby_3.4-rc-alpine3.19/Dockerfile
@@ -158,7 +158,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.4-rc-bullseye/Dockerfile b/ruby_3.4-rc-bullseye/Dockerfile
index bc900b2..23f69e2 100644
--- a/ruby_3.4-rc-bullseye/Dockerfile
+++ b/ruby_3.4-rc-bullseye/Dockerfile
@@ -113,7 +113,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.4-rc-slim-bullseye/Dockerfile b/ruby_3.4-rc-slim-bullseye/Dockerfile
index c7a4846..bf4736f 100644
--- a/ruby_3.4-rc-slim-bullseye/Dockerfile
+++ b/ruby_3.4-rc-slim-bullseye/Dockerfile
@@ -139,7 +139,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.4-rc-slim/Dockerfile b/ruby_3.4-rc-slim/Dockerfile
index b74c10f..437c092 100644
--- a/ruby_3.4-rc-slim/Dockerfile
+++ b/ruby_3.4-rc-slim/Dockerfile
@@ -139,7 +139,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_3.4-rc/Dockerfile b/ruby_3.4-rc/Dockerfile
index 4b736cb..73b4609 100644
--- a/ruby_3.4-rc/Dockerfile
+++ b/ruby_3.4-rc/Dockerfile
@@ -113,7 +113,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_alpine/Dockerfile b/ruby_alpine/Dockerfile
index be423d9..904c97d 100644
--- a/ruby_alpine/Dockerfile
+++ b/ruby_alpine/Dockerfile
@@ -27,10 +27,10 @@ RUN set -eux; \
 
 ENV LANG C.UTF-8
 
-# https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/
-ENV RUBY_VERSION 3.3.3
-ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.xz
-ENV RUBY_DOWNLOAD_SHA256 83c0995388399c9555bad87e70af069755b5a9d84bbaa74aa22d1e37ff70fc1e
+# https://www.ruby-lang.org/en/news/2024/07/09/ruby-3-3-4-released/
+ENV RUBY_VERSION 3.3.4
+ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz
+ENV RUBY_DOWNLOAD_SHA256 1caaee9a5a6befef54bab67da68ace8d985e4fb59cd17ce23c28d9ab04f4ddad
 
 # some of ruby's build scripts are written in ruby
 #   we purge system ruby later to make sure our final image uses what we just built
@@ -158,7 +158,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_alpine3.19/Dockerfile b/ruby_alpine3.19/Dockerfile
index 6ea028a..2ed3f1f 100644
--- a/ruby_alpine3.19/Dockerfile
+++ b/ruby_alpine3.19/Dockerfile
@@ -27,10 +27,10 @@ RUN set -eux; \
 
 ENV LANG C.UTF-8
 
-# https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/
-ENV RUBY_VERSION 3.3.3
-ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.xz
-ENV RUBY_DOWNLOAD_SHA256 83c0995388399c9555bad87e70af069755b5a9d84bbaa74aa22d1e37ff70fc1e
+# https://www.ruby-lang.org/en/news/2024/07/09/ruby-3-3-4-released/
+ENV RUBY_VERSION 3.3.4
+ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz
+ENV RUBY_DOWNLOAD_SHA256 1caaee9a5a6befef54bab67da68ace8d985e4fb59cd17ce23c28d9ab04f4ddad
 
 # some of ruby's build scripts are written in ruby
 #   we purge system ruby later to make sure our final image uses what we just built
@@ -158,7 +158,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_bullseye/Dockerfile b/ruby_bullseye/Dockerfile
index 314a883..9bb4c2c 100644
--- a/ruby_bullseye/Dockerfile
+++ b/ruby_bullseye/Dockerfile
@@ -16,10 +16,10 @@ RUN set -eux; \
 
 ENV LANG C.UTF-8
 
-# https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/
-ENV RUBY_VERSION 3.3.3
-ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.xz
-ENV RUBY_DOWNLOAD_SHA256 83c0995388399c9555bad87e70af069755b5a9d84bbaa74aa22d1e37ff70fc1e
+# https://www.ruby-lang.org/en/news/2024/07/09/ruby-3-3-4-released/
+ENV RUBY_VERSION 3.3.4
+ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz
+ENV RUBY_DOWNLOAD_SHA256 1caaee9a5a6befef54bab67da68ace8d985e4fb59cd17ce23c28d9ab04f4ddad
 
 # some of ruby's build scripts are written in ruby
 #   we purge system ruby later to make sure our final image uses what we just built
@@ -113,7 +113,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_latest/Dockerfile b/ruby_latest/Dockerfile
index a3816b5..19a5519 100644
--- a/ruby_latest/Dockerfile
+++ b/ruby_latest/Dockerfile
@@ -16,10 +16,10 @@ RUN set -eux; \
 
 ENV LANG C.UTF-8
 
-# https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/
-ENV RUBY_VERSION 3.3.3
-ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.xz
-ENV RUBY_DOWNLOAD_SHA256 83c0995388399c9555bad87e70af069755b5a9d84bbaa74aa22d1e37ff70fc1e
+# https://www.ruby-lang.org/en/news/2024/07/09/ruby-3-3-4-released/
+ENV RUBY_VERSION 3.3.4
+ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz
+ENV RUBY_DOWNLOAD_SHA256 1caaee9a5a6befef54bab67da68ace8d985e4fb59cd17ce23c28d9ab04f4ddad
 
 # some of ruby's build scripts are written in ruby
 #   we purge system ruby later to make sure our final image uses what we just built
@@ -113,7 +113,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_slim-bullseye/Dockerfile b/ruby_slim-bullseye/Dockerfile
index 2b7ee19..182509f 100644
--- a/ruby_slim-bullseye/Dockerfile
+++ b/ruby_slim-bullseye/Dockerfile
@@ -30,10 +30,10 @@ RUN set -eux; \
 
 ENV LANG C.UTF-8
 
-# https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/
-ENV RUBY_VERSION 3.3.3
-ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.xz
-ENV RUBY_DOWNLOAD_SHA256 83c0995388399c9555bad87e70af069755b5a9d84bbaa74aa22d1e37ff70fc1e
+# https://www.ruby-lang.org/en/news/2024/07/09/ruby-3-3-4-released/
+ENV RUBY_VERSION 3.3.4
+ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz
+ENV RUBY_DOWNLOAD_SHA256 1caaee9a5a6befef54bab67da68ace8d985e4fb59cd17ce23c28d9ab04f4ddad
 
 # some of ruby's build scripts are written in ruby
 #   we purge system ruby later to make sure our final image uses what we just built
@@ -139,7 +139,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]
diff --git a/ruby_slim/Dockerfile b/ruby_slim/Dockerfile
index 6c85ea6..2866190 100644
--- a/ruby_slim/Dockerfile
+++ b/ruby_slim/Dockerfile
@@ -30,10 +30,10 @@ RUN set -eux; \
 
 ENV LANG C.UTF-8
 
-# https://www.ruby-lang.org/en/news/2024/06/12/ruby-3-3-3-released/
-ENV RUBY_VERSION 3.3.3
-ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.xz
-ENV RUBY_DOWNLOAD_SHA256 83c0995388399c9555bad87e70af069755b5a9d84bbaa74aa22d1e37ff70fc1e
+# https://www.ruby-lang.org/en/news/2024/07/09/ruby-3-3-4-released/
+ENV RUBY_VERSION 3.3.4
+ENV RUBY_DOWNLOAD_URL https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz
+ENV RUBY_DOWNLOAD_SHA256 1caaee9a5a6befef54bab67da68ace8d985e4fb59cd17ce23c28d9ab04f4ddad
 
 # some of ruby's build scripts are written in ruby
 #   we purge system ruby later to make sure our final image uses what we just built
@@ -139,7 +139,9 @@ ENV GEM_HOME /usr/local/bundle
 ENV BUNDLE_SILENCE_ROOT_WARNING=1 \
 	BUNDLE_APP_CONFIG="$GEM_HOME"
 ENV PATH $GEM_HOME/bin:$PATH
-# adjust permissions of a few directories for running "gem install" as an arbitrary user
-RUN mkdir -p "$GEM_HOME" && chmod 1777 "$GEM_HOME"
+RUN set -eux; \
+	mkdir "$GEM_HOME"; \
+# adjust permissions of GEM_HOME for running "gem install" as an arbitrary user
+	chmod 1777 "$GEM_HOME"
 
 CMD [ "irb" ]

Relevant Maintainers:

@tianon tianon mentioned this pull request Jul 9, 2024
@yosifkit yosifkit merged commit e36cc54 into docker-library:master Jul 9, 2024
29 checks passed
@yosifkit yosifkit deleted the ruby branch July 9, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants