-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove code specifig for Ubuntu 22.04
- Loading branch information
Showing
5 changed files
with
9 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM rubensa/ubuntu-tini-user | ||
FROM rubensa/ubuntu-tini-user:20.04 | ||
LABEL author="Ruben Suarez <[email protected]>" | ||
|
||
# Architecture component of TARGETPLATFORM (platform of the build result) | ||
|
@@ -312,10 +312,10 @@ curl -o /usr/share/bash-completion/completions/ruby -sSL https://raw.githubuserc | |
chmod 644 /usr/share/bash-completion/completions/ruby | ||
EOT | ||
|
||
# Ubuntu 22.04 comes with OpenSSL 3.0 and Ruby versions earlier than 2.4 used OpenSSL 1.0 | ||
# Ubuntu 20.04 comes with OpenSSL 1.1 and Ruby versions earlier than 2.4 used OpenSSL 1.0 | ||
# openssl installation directory | ||
ENV OPENSSL_ROOT_1_0=/opt/openssl-1.0 | ||
COPY --from=rubensa/ubuntu-openssl-old ${OPENSSL_ROOT_1_0} ${OPENSSL_ROOT_1_0} | ||
COPY --from=rubensa/ubuntu-openssl-old:20.04 ${OPENSSL_ROOT_1_0} ${OPENSSL_ROOT_1_0} | ||
# Install OpenSSL 1.0 | ||
RUN <<EOT | ||
echo "# Installing OpenSSL 1.0..." | ||
|
@@ -328,21 +328,6 @@ ldconfig | |
EOT | ||
# Use RUBY_CONFIGURE_OPTS=--with-openssl-dir=${OPENSSL_ROOT_1_0} before the command to install the ruby version < 2.4 | ||
|
||
# Ubuntu 22.04 comes with OpenSSL 3.0 and Ruby versions earlier than 3.1 used OpenSSL 1.1 | ||
# openssl installation directory | ||
ENV OPENSSL_ROOT_1_1=/opt/openssl-1.1 | ||
COPY --from=rubensa/ubuntu-openssl-old ${OPENSSL_ROOT_1_1} ${OPENSSL_ROOT_1_1} | ||
# Install OpenSSL 1.1 | ||
RUN <<EOT | ||
echo "# Installing OpenSSL 1.1..." | ||
# Link the system certs to OpenSSL directory | ||
rm -rf ${OPENSSL_ROOT_1_1}/certs | ||
ln -s /etc/ssl/certs ${OPENSSL_ROOT_1_1} | ||
echo "${OPENSSL_ROOT_1_1}/lib" > /etc/ld.so.conf.d/openssl-1.1.conf | ||
ldconfig | ||
EOT | ||
# Use RUBY_CONFIGURE_OPTS=--with-openssl-dir=${OPENSSL_ROOT_1_1} before the command to install the ruby version < 3.1 | ||
|
||
# .Net installer version (https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install) | ||
ARG DOTNET_INSTALLER_VERSION=v1 | ||
# Use this path for shared installation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters