-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add erlang/otp 27.0-rc1, update 26.2.2, 25.3.2.9, 24.3.4.16 (#463)
- Loading branch information
Showing
14 changed files
with
238 additions
and
37 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
FROM buildpack-deps:bookworm | ||
|
||
ENV OTP_VERSION="27.0-rc1" \ | ||
REBAR3_VERSION="3.22.1" | ||
|
||
LABEL org.opencontainers.image.version=$OTP_VERSION | ||
|
||
# We'll install the build dependencies for erlang-odbc along with the erlang | ||
# build process: | ||
RUN set -xe \ | ||
&& OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" \ | ||
&& OTP_DOWNLOAD_SHA256="e543ec72fd55ae0a8e7094a37e305e4de24d5c1b97044723cd67b74a74bbd32c" \ | ||
&& runtimeDeps='libodbc1 \ | ||
libsctp1 \ | ||
libwxgtk3.2 \ | ||
libwxgtk-webview3.2-dev ' \ | ||
&& buildDeps='unixodbc-dev \ | ||
libsctp-dev ' \ | ||
&& apt-get update \ | ||
&& apt-get install -y --no-install-recommends $runtimeDeps \ | ||
&& apt-get install -y --no-install-recommends $buildDeps \ | ||
&& curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" \ | ||
&& echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - \ | ||
&& export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" \ | ||
&& mkdir -vp $ERL_TOP \ | ||
&& tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 \ | ||
&& rm otp-src.tar.gz \ | ||
&& ( cd $ERL_TOP \ | ||
&& ./otp_build autoconf \ | ||
&& gnuArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)" \ | ||
&& ./configure --build="$gnuArch" \ | ||
&& make -j$(nproc) \ | ||
&& make -j$(nproc) docs DOC_TARGETS=chunks \ | ||
&& make install install-docs DOC_TARGETS=chunks ) \ | ||
&& find /usr/local -name examples | xargs rm -rf \ | ||
&& apt-get purge -y --auto-remove $buildDeps \ | ||
&& rm -rf $ERL_TOP /var/lib/apt/lists/* | ||
|
||
CMD ["erl"] | ||
|
||
# extra useful tools here: rebar & rebar3 | ||
|
||
ENV REBAR_VERSION="2.6.4" | ||
|
||
RUN set -xe \ | ||
&& REBAR_DOWNLOAD_URL="https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz" \ | ||
&& REBAR_DOWNLOAD_SHA256="577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07" \ | ||
&& mkdir -p /usr/src/rebar-src \ | ||
&& curl -fSL -o rebar-src.tar.gz "$REBAR_DOWNLOAD_URL" \ | ||
&& echo "$REBAR_DOWNLOAD_SHA256 rebar-src.tar.gz" | sha256sum -c - \ | ||
&& tar -xzf rebar-src.tar.gz -C /usr/src/rebar-src --strip-components=1 \ | ||
&& rm rebar-src.tar.gz \ | ||
&& cd /usr/src/rebar-src \ | ||
&& ./bootstrap \ | ||
&& install -v ./rebar /usr/local/bin/ \ | ||
&& rm -rf /usr/src/rebar-src | ||
|
||
RUN set -xe \ | ||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \ | ||
&& REBAR3_DOWNLOAD_SHA256="2855b5784300865d2e43cb7a135cb2bba144cf15214c619065b918afc8cc6eb9" \ | ||
&& mkdir -p /usr/src/rebar3-src \ | ||
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \ | ||
&& echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - \ | ||
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ | ||
&& rm rebar3-src.tar.gz \ | ||
&& cd /usr/src/rebar3-src \ | ||
&& HOME=$PWD ./bootstrap \ | ||
&& install -v ./rebar3 /usr/local/bin/ \ | ||
&& rm -rf /usr/src/rebar3-src |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
FROM alpine:3.19 | ||
|
||
ENV OTP_VERSION="27.0-rc1" \ | ||
REBAR3_VERSION="3.22.1" | ||
|
||
LABEL org.opencontainers.image.version=$OTP_VERSION | ||
|
||
RUN set -xe \ | ||
&& OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" \ | ||
&& OTP_DOWNLOAD_SHA256="e543ec72fd55ae0a8e7094a37e305e4de24d5c1b97044723cd67b74a74bbd32c" \ | ||
&& REBAR3_DOWNLOAD_SHA256="2855b5784300865d2e43cb7a135cb2bba144cf15214c619065b918afc8cc6eb9" \ | ||
&& apk add --no-cache --virtual .fetch-deps \ | ||
curl \ | ||
ca-certificates \ | ||
&& curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" \ | ||
&& echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
dpkg-dev dpkg \ | ||
gcc \ | ||
g++ \ | ||
libc-dev \ | ||
linux-headers \ | ||
make \ | ||
autoconf \ | ||
ncurses-dev \ | ||
openssl-dev \ | ||
unixodbc-dev \ | ||
lksctp-tools-dev \ | ||
tar \ | ||
&& export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" \ | ||
&& mkdir -vp $ERL_TOP \ | ||
&& tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 \ | ||
&& rm otp-src.tar.gz \ | ||
&& ( cd $ERL_TOP \ | ||
&& ./otp_build autoconf \ | ||
&& gnuArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)" \ | ||
&& ./configure --build="$gnuArch" \ | ||
&& make -j$(getconf _NPROCESSORS_ONLN) \ | ||
&& make install ) \ | ||
&& rm -rf $ERL_TOP \ | ||
&& find /usr/local -regex '/usr/local/lib/erlang/\(lib/\|erts-\).*/\(man\|doc\|obj\|c_src\|emacs\|info\|examples\)' | xargs rm -rf \ | ||
&& find /usr/local -name src | xargs -r find | grep -v '\.hrl$' | xargs rm -v || true \ | ||
&& find /usr/local -name src | xargs -r find | xargs rmdir -vp || true \ | ||
&& scanelf --nobanner -E ET_EXEC -BF '%F' --recursive /usr/local | xargs -r strip --strip-all \ | ||
&& scanelf --nobanner -E ET_DYN -BF '%F' --recursive /usr/local | xargs -r strip --strip-unneeded \ | ||
&& runDeps="$( \ | ||
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \ | ||
| tr ',' '\n' \ | ||
| sort -u \ | ||
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ | ||
)" \ | ||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \ | ||
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \ | ||
&& echo "${REBAR3_DOWNLOAD_SHA256} rebar3-src.tar.gz" | sha256sum -c - \ | ||
&& mkdir -p /usr/src/rebar3-src \ | ||
&& tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 \ | ||
&& rm rebar3-src.tar.gz \ | ||
&& cd /usr/src/rebar3-src \ | ||
&& HOME=$PWD ./bootstrap \ | ||
&& install -v ./rebar3 /usr/local/bin/ \ | ||
&& rm -rf /usr/src/rebar3-src \ | ||
&& apk add --virtual .erlang-rundeps \ | ||
$runDeps \ | ||
lksctp-tools \ | ||
ca-certificates \ | ||
&& apk del .fetch-deps .build-deps | ||
|
||
CMD ["erl"] |
Oops, something went wrong.