mirror of
https://github.com/erlang/docker-erlang-otp.git
synced 2025-04-19 01:44:02 +03:00
Add rebar3 to slims images (#349)
* Added rebar3 of version 3.15.1 to slim OTP 19/20/21 * Added rebar3 of version 3.6.0 to slim OTP 22/23/24 * Updated rebar3 to 3.15.1 in alpine-20 * Update README: add 24 to OTP list
This commit is contained in:
parent
abfd637ea5
commit
84d8c156c9
@ -1,6 +1,7 @@
|
||||
FROM debian:stretch
|
||||
|
||||
ENV OTP_VERSION="19.3.6.13"
|
||||
ENV OTP_VERSION="19.3.6.13" \
|
||||
REBAR3_VERSION="3.15.2"
|
||||
|
||||
# We'll install the build dependencies, and purge them on the last step to make
|
||||
# sure our final image contains only what we've just built:
|
||||
@ -42,7 +43,18 @@ RUN set -xe \
|
||||
&& make -j$(nproc) \
|
||||
&& make install \
|
||||
&& find /usr/local -name examples | xargs rm -rf \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -rf /usr/src/otp-src /var/lib/apt/lists/*
|
||||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="11b6bead835421a276e287562588580b63ac1c8dcb0e3c51f674887e4ab395cd" \
|
||||
&& 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 \
|
||||
&& apt-get purge -y --auto-remove $buildDeps $fetchDeps \
|
||||
&& rm -rf $ERL_TOP /var/lib/apt/lists/*
|
||||
|
||||
CMD ["erl"]
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM debian:stretch
|
||||
|
||||
ENV OTP_VERSION="20.3.8.26"
|
||||
ENV OTP_VERSION="20.3.8.26" \
|
||||
REBAR3_VERSION="3.15.2"
|
||||
|
||||
# We'll install the build dependencies, and purge them on the last step to make
|
||||
# sure our final image contains only what we've just built:
|
||||
@ -43,6 +44,17 @@ RUN set -xe \
|
||||
&& make -j$(nproc) \
|
||||
&& make install ) \
|
||||
&& find /usr/local -name examples | xargs rm -rf \
|
||||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="11b6bead835421a276e287562588580b63ac1c8dcb0e3c51f674887e4ab395cd" \
|
||||
&& 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 \
|
||||
&& apt-get purge -y --auto-remove $buildDeps $fetchDeps \
|
||||
&& rm -rf $ERL_TOP /var/lib/apt/lists/*
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM debian:stretch
|
||||
|
||||
ENV OTP_VERSION="21.3.8.23"
|
||||
ENV OTP_VERSION="21.3.8.23" \
|
||||
REBAR3_VERSION="3.15.2"
|
||||
|
||||
LABEL org.opencontainers.image.version=$OTP_VERSION
|
||||
|
||||
@ -45,6 +46,17 @@ RUN set -xe \
|
||||
&& make -j$(nproc) \
|
||||
&& make install ) \
|
||||
&& find /usr/local -name examples | xargs rm -rf \
|
||||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="11b6bead835421a276e287562588580b63ac1c8dcb0e3c51f674887e4ab395cd" \
|
||||
&& 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 \
|
||||
&& apt-get purge -y --auto-remove $buildDeps $fetchDeps \
|
||||
&& rm -rf $ERL_TOP /var/lib/apt/lists/*
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM debian:buster
|
||||
|
||||
ENV OTP_VERSION="22.3.4.19"
|
||||
ENV OTP_VERSION="22.3.4.19" \
|
||||
REBAR3_VERSION="3.16.1"
|
||||
|
||||
LABEL org.opencontainers.image.version=$OTP_VERSION
|
||||
|
||||
@ -45,6 +46,17 @@ RUN set -xe \
|
||||
&& make -j$(nproc) \
|
||||
&& make install ) \
|
||||
&& find /usr/local -name examples | xargs rm -rf \
|
||||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="a14711b09f6e1fc1b080b79d78c304afebcbb7fafed9d0972eb739f0ed89121b" \
|
||||
&& 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 \
|
||||
&& apt-get purge -y --auto-remove $buildDeps $fetchDeps \
|
||||
&& rm -rf $ERL_TOP /var/lib/apt/lists/*
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM debian:buster
|
||||
|
||||
ENV OTP_VERSION="23.3.4.1"
|
||||
ENV OTP_VERSION="23.3.4.1" \
|
||||
REBAR3_VERSION="3.16.1"
|
||||
|
||||
LABEL org.opencontainers.image.version=$OTP_VERSION
|
||||
|
||||
@ -45,6 +46,17 @@ RUN set -xe \
|
||||
&& make -j$(nproc) \
|
||||
&& make install ) \
|
||||
&& find /usr/local -name examples | xargs rm -rf \
|
||||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="a14711b09f6e1fc1b080b79d78c304afebcbb7fafed9d0972eb739f0ed89121b" \
|
||||
&& 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 \
|
||||
&& apt-get purge -y --auto-remove $buildDeps $fetchDeps \
|
||||
&& rm -rf $ERL_TOP /var/lib/apt/lists/*
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
FROM debian:buster
|
||||
|
||||
ENV OTP_VERSION="24.0.1"
|
||||
ENV OTP_VERSION="24.0.1" \
|
||||
REBAR3_VERSION="3.16.1"
|
||||
|
||||
LABEL org.opencontainers.image.version=$OTP_VERSION
|
||||
|
||||
@ -45,6 +46,17 @@ RUN set -xe \
|
||||
&& make -j$(nproc) \
|
||||
&& make install ) \
|
||||
&& find /usr/local -name examples | xargs rm -rf \
|
||||
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
|
||||
&& REBAR3_DOWNLOAD_SHA256="a14711b09f6e1fc1b080b79d78c304afebcbb7fafed9d0972eb739f0ed89121b" \
|
||||
&& 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 \
|
||||
&& apt-get purge -y --auto-remove $buildDeps $fetchDeps \
|
||||
&& rm -rf $ERL_TOP /var/lib/apt/lists/*
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
[](https://github.com/erlang/docker-erlang-otp/actions)
|
||||
|
||||
This is used as docker base image for Erlang OTP.
|
||||
The goal is to provide images for a few last erlang releases (currently 23/ 22/ 21/ 20 / 19 / 18), in close to full feature Erlang OTP, and relatively slim images. Support to 17, R16 and R15 are provided in this repo on a best-effort basis, and not part of official-image effort in docker-library/official-images#1075 .
|
||||
The goal is to provide images for a few last erlang releases (currently 24 / 23 / 22 / 21 / 20 / 19 / 18), in close to full feature Erlang OTP, and relatively slim images. Support to 17, R16 and R15 are provided in this repo on a best-effort basis, and not part of official-image effort in docker-library/official-images#1075 .
|
||||
|
||||
### use the Erlang 23
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user