Skip to content

Commit

Permalink
OpenSSL has stopped hosting OpenSSL 1.1.1 packages
Browse files Browse the repository at this point in the history
They link to GitHub these days (https://openssl-library.org/source/old/1.1.1/index.html). However, we need `-L` (follow redirects) as GitHub redirects to S3.

Also use latest 1.1.1 for good measure.
  • Loading branch information
walro committed Aug 26, 2024
1 parent b1af450 commit c0ae58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARG erlang_version=24.0
# Erlang before 24.2 didn't support libssl3, so statically compile 1.1.1 if no available from the OS
RUN libssl_version=$(dpkg-query --showformat='${Version}' --show libssl-dev); \
if (dpkg --compare-versions "$erlang_version" ge 20.0 && dpkg --compare-versions "$erlang_version" lt 24.2 && dpkg --compare-versions "$libssl_version" ge 3.0.0); then \
curl https://www.openssl.org/source/openssl-1.1.1t.tar.gz | tar zx --strip-components=1 && \
curl -L https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz | tar zx --strip-components=1 && \
./config no-shared && \
make -j$(nproc) && make install_sw; \
fi
Expand Down

0 comments on commit c0ae58e

Please sign in to comment.