mirror of
https://github.com/erlang/docker-erlang-otp.git
synced 2025-04-19 01:44:02 +03:00
delete alpine for Version 21
This commit is contained in:
parent
e9ce9f226c
commit
a64e125fa4
2
.github/workflows/erlang.yaml
vendored
2
.github/workflows/erlang.yaml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
'DIR=24', 'DIR=24 VARIANT=slim', 'DIR=24 VARIANT=alpine',
|
||||
'DIR=23',' DIR=23 VARIANT=slim', 'DIR=23 VARIANT=alpine',
|
||||
'DIR=22', 'DIR=22 VARIANT=slim', 'DIR=22 VARIANT=alpine',
|
||||
'DIR=21', 'DIR=21 VARIANT=slim', 'DIR=21 VARIANT=alpine',
|
||||
'DIR=21', 'DIR=21 VARIANT=slim',
|
||||
'DIR=20', 'DIR=20 VARIANT=slim']
|
||||
fail-fast: false
|
||||
steps:
|
||||
|
@ -1,68 +0,0 @@
|
||||
FROM alpine:3.13
|
||||
|
||||
ENV OTP_VERSION="21.3.8.24" \
|
||||
REBAR3_VERSION="3.15.2"
|
||||
|
||||
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="90017fe0b844cf3ba7dc9faf7f6f690050f3138f3d3f7532a9343174f5f9febc" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="11b6bead835421a276e287562588580b63ac1c8dcb0e3c51f674887e4ab395cd" \
|
||||
&& 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" --disable-hipe \
|
||||
&& 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"]
|
Loading…
x
Reference in New Issue
Block a user