Skip to content

Commit

Permalink
Use Rebar3 3.18.0 for OTP 22
Browse files Browse the repository at this point in the history
Starting from 3.19.0, Rebar3 only support OTP 23 to 25 inclusively.
Hence, the last official supported Rebar3 for OTP 22 is 3.18.0.

See:
- https://github.com/erlang/rebar3/releases/tag/3.19.0
- erlang/rebar3#2706
  • Loading branch information
kianmeng authored and getong committed Jun 25, 2024
1 parent 19e38e7 commit b3cbee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM buildpack-deps:buster

ENV OTP_VERSION="22.3.4.27" \
REBAR3_VERSION="3.20.0" \
REBAR3_VERSION="3.18.0" \
REBAR_VERSION="2.6.4"

LABEL org.opencontainers.image.version=$OTP_VERSION
Expand Down Expand Up @@ -55,7 +55,7 @@ RUN set -xe \

RUN set -xe \
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& REBAR3_DOWNLOAD_SHA256="cce1925d33240d81d0e4d2de2eef3616d4c17b0532ed004274f875e6607d25d2" \
&& 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 - \
Expand Down
4 changes: 2 additions & 2 deletions 22/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM debian:buster

ENV OTP_VERSION="22.3.4.27" \
REBAR3_VERSION="3.20.0"
REBAR3_VERSION="3.18.0"

LABEL org.opencontainers.image.version=$OTP_VERSION

Expand Down Expand Up @@ -47,7 +47,7 @@ RUN set -xe \
&& 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="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& REBAR3_DOWNLOAD_SHA256="cce1925d33240d81d0e4d2de2eef3616d4c17b0532ed004274f875e6607d25d2" \
&& 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 - \
Expand Down

0 comments on commit b3cbee1

Please sign in to comment.