From d52f08ee3b8a60782b2e72ff451818204fe92d64 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Sat, 28 Oct 2023 21:20:30 +0000 Subject: [PATCH] chore: add openssl 1.1 to compile older erlang --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6a60d79..87e3525 100644 --- a/Dockerfile +++ b/Dockerfile @@ -174,3 +174,16 @@ RUN ${XDG_DATA_HOME}/rtx/bin/rtx plugins install \ kubectl \ poetry \ terraform + +# configure openssl 1.1 +# this is needed to compile older erlang versions +# example: KERL_CONFIGURE_OPTIONS="-with-ssl=${HOME}/.local/lib/ssl" asdf install +RUN mkdir -p ${HOME}/.local/src \ + && cd ${HOME}/.local/src \ + && wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz \ + && tar -xzf openssl-1.1.1m.tar.gz \ + && cd openssl-1.1.1m \ + && ./config --prefix=${HOME}/.local/lib/ssl --openssldir=${HOME}/.local/lib/ssl shared zlib \ + && make \ + # && make test \ + && make install -- 2.47.2