Skip to content

Commit ba99bc6

Browse files
Bitnami Botbeertje44
authored andcommitted
[bitnami/ruby] Release ruby-3.4.1-debian-12-r0 (bitnami#75914)
Signed-off-by: Bitnami Bot <bitnami-bot@vmware.com>
1 parent 095844b commit ba99bc6

File tree

8 files changed

+135
-1
lines changed

8 files changed

+135
-1
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright Broadcom, Inc. All Rights Reserved.
2+
# SPDX-License-Identifier: APACHE-2.0
3+
4+
FROM docker.io/bitnami/minideb:bookworm
5+
6+
ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
7+
ARG TARGETARCH
8+
9+
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
10+
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
11+
org.opencontainers.image.created="2024-12-26T15:40:21Z" \
12+
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
13+
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/ruby/README.md" \
14+
org.opencontainers.image.licenses="Apache-2.0" \
15+
org.opencontainers.image.ref.name="3.4.1-debian-12-r0" \
16+
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/ruby" \
17+
org.opencontainers.image.title="ruby" \
18+
org.opencontainers.image.vendor="Broadcom, Inc." \
19+
org.opencontainers.image.version="3.4.1"
20+
21+
ENV OS_ARCH="${TARGETARCH:-amd64}" \
22+
OS_FLAVOUR="debian-12" \
23+
OS_NAME="linux"
24+
25+
COPY prebuildfs /
26+
SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
27+
# Install required system packages and dependencies
28+
RUN install_packages build-essential ca-certificates curl git libcrypt1 libffi8 libreadline-dev libsqlite3-dev libssl-dev libssl3 libyaml-0-2 libyaml-dev pkg-config procps sqlite3 unzip wget zlib1g
29+
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
30+
COMPONENTS=( \
31+
"ruby-3.4.1-0-linux-${OS_ARCH}-debian-12" \
32+
) ; \
33+
for COMPONENT in "${COMPONENTS[@]}"; do \
34+
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
35+
curl -SsLf "https://${DOWNLOADS_URL}/${COMPONENT}.tar.gz" -O ; \
36+
curl -SsLf "https://${DOWNLOADS_URL}/${COMPONENT}.tar.gz.sha256" -O ; \
37+
fi ; \
38+
sha256sum -c "${COMPONENT}.tar.gz.sha256" ; \
39+
tar -zxf "${COMPONENT}.tar.gz" -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' ; \
40+
rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \
41+
done
42+
RUN apt-get update && apt-get upgrade -y && \
43+
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
44+
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
45+
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
46+
sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 0/' /etc/login.defs && \
47+
sed -i 's/sha512/sha512 minlen=8/' /etc/pam.d/common-password
48+
49+
ENV APP_VERSION="3.4.1" \
50+
BITNAMI_APP_NAME="ruby" \
51+
PATH="/opt/bitnami/ruby/bin:$PATH"
52+
53+
EXPOSE 3000
54+
55+
WORKDIR /app
56+
CMD [ "irb" ]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright Broadcom, Inc. All Rights Reserved.
2+
# SPDX-License-Identifier: APACHE-2.0
3+
4+
services:
5+
ruby:
6+
tty: true # Enables debugging capabilities when attached to this container.
7+
image: docker.io/bitnami/ruby:3.4
8+
# command: sh -c 'bundle install && bundle exec rails server -b 0.0.0.0 -p 3000'
9+
ports:
10+
- 3000:3000
11+
volumes:
12+
- .:/app
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"ruby": {
3+
"arch": "amd64",
4+
"distro": "debian-12",
5+
"type": "NAMI",
6+
"version": "3.4.1-0"
7+
}
8+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Bitnami containers ship with software bundles. You can find the licenses under:
2+
/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/sh
2+
# Copyright Broadcom, Inc. All Rights Reserved.
3+
# SPDX-License-Identifier: APACHE-2.0
4+
set -eu
5+
6+
n=0
7+
max=2
8+
export DEBIAN_FRONTEND=noninteractive
9+
10+
until [ $n -gt $max ]; do
11+
set +e
12+
(
13+
apt-get update -qq &&
14+
apt-get install -y --no-install-recommends "$@"
15+
)
16+
CODE=$?
17+
set -e
18+
if [ $CODE -eq 0 ]; then
19+
break
20+
fi
21+
if [ $n -eq $max ]; then
22+
exit $CODE
23+
fi
24+
echo "apt failed, retrying"
25+
n=$(($n + 1))
26+
done
27+
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/sh
2+
# Copyright Broadcom, Inc. All Rights Reserved.
3+
# SPDX-License-Identifier: APACHE-2.0
4+
set -u
5+
6+
if [ $# -eq 0 ]; then
7+
>&2 echo "No arguments provided"
8+
exit 1
9+
fi
10+
11+
script=$1
12+
exit_code="${2:-96}"
13+
fail_if_not_present="${3:-n}"
14+
15+
if test -f "$script"; then
16+
sh $script
17+
18+
if [ $? -ne 0 ]; then
19+
exit $((exit_code))
20+
fi
21+
elif [ "$fail_if_not_present" = "y" ]; then
22+
>&2 echo "script not found: $script"
23+
exit 127
24+
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rolling-tags:
2+
- "3.4"
3+
- 3.4-debian-12
4+
- 3.4.1
5+
- latest

bitnami/ruby/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
services:
55
ruby:
66
tty: true # Enables debugging capabilities when attached to this container.
7-
image: docker.io/bitnami/ruby:3.3
7+
image: docker.io/bitnami/ruby:3.4
88
# command: sh -c 'bundle install && bundle exec rails server -b 0.0.0.0 -p 3000'
99
ports:
1010
- 3000:3000

0 commit comments

Comments
 (0)