Deprecate Ruby 2.6 (#92)

Branch deprecated since it reached the EOL
This commit is contained in:
Carlos Rodríguez Hernández
2022-06-27 11:42:34 +02:00
committed by Bitnami Containers
parent 0fed6e3a9b
commit 87180eca9d
5 changed files with 0 additions and 74 deletions

View File

@@ -1,27 +0,0 @@
FROM docker.io/bitnami/minideb:bullseye
ENV OS_ARCH="amd64" \
OS_FLAVOUR="debian-11" \
OS_NAME="linux"
COPY prebuildfs /
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install required system packages and dependencies
RUN install_packages build-essential ca-certificates curl git gzip libc6 libcrypt1 libreadline-dev libreadline8 libsqlite3-dev libssl-dev libssl1.1 libtinfo6 pkg-config procps sqlite3 tar unzip wget zlib1g
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/ruby-2.6.10-150-linux-amd64-debian-11.tar.gz && \
echo "45a2c0404d81a629940d49c7c17dff08ae8397020cc9f6c771a4533bcfd21116 /tmp/bitnami/pkg/cache/ruby-2.6.10-150-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
tar -zxf /tmp/bitnami/pkg/cache/ruby-2.6.10-150-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
rm -rf /tmp/bitnami/pkg/cache/ruby-2.6.10-150-linux-amd64-debian-11.tar.gz
RUN apt-get update && apt-get upgrade -y && \
rm -r /var/lib/apt/lists /var/cache/apt/archives
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 0/' /etc/login.defs && \
sed -i 's/sha512/sha512 minlen=8/' /etc/pam.d/common-password
ENV APP_VERSION="2.6.10" \
BITNAMI_APP_NAME="ruby" \
PATH="/opt/bitnami/ruby/bin:$PATH"
EXPOSE 3000
WORKDIR /app
CMD [ "irb" ]

View File

@@ -1,11 +0,0 @@
version: '2'
services:
ruby:
tty: true # Enables debugging capabilities when attached to this container.
image: docker.io/bitnami/ruby:2.6
# command: sh -c 'bundle install && bundle exec rails server -b 0.0.0.0 -p 3000'
ports:
- 3000:3000
volumes:
- .:/app

View File

@@ -1,9 +0,0 @@
{
"ruby": {
"arch": "amd64",
"digest": "45a2c0404d81a629940d49c7c17dff08ae8397020cc9f6c771a4533bcfd21116",
"distro": "debian-11",
"type": "NAMI",
"version": "2.6.10-150"
}
}

View File

@@ -1,3 +0,0 @@
Bitnami containers ship with software bundles. You can find the licenses under:
/opt/bitnami/nami/COPYING
/opt/bitnami/[name-of-bundle]/licenses/[bundle-version].txt

View File

@@ -1,24 +0,0 @@
#!/bin/sh
set -e
set -u
export DEBIAN_FRONTEND=noninteractive
n=0
max=2
until [ $n -gt $max ]; do
set +e
(
apt-get update -qq &&
apt-get install -y --no-install-recommends "$@"
)
CODE=$?
set -e
if [ $CODE -eq 0 ]; then
break
fi
if [ $n -eq $max ]; then
exit $CODE
fi
echo "apt failed, retrying"
n=$(($n + 1))
done
rm -r /var/lib/apt/lists /var/cache/apt/archives