Skip to content

Commit

Permalink
Downgrade Rebar3 to 3.20.0 for OTP 22/23
Browse files Browse the repository at this point in the history
Rebar3 3.21.0 officially deprecated support for OTP 23.

See:
- #473
- https://github.com/erlang/rebar3/releases/tag/3.21.0
- erlang/rebar3#2791
  • Loading branch information
kianmeng authored and getong committed Jun 23, 2024
1 parent 8b81283 commit 23c0ba4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
7 changes: 3 additions & 4 deletions 22/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM buildpack-deps:buster

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

LABEL org.opencontainers.image.version=$OTP_VERSION

Expand Down Expand Up @@ -39,8 +40,6 @@ 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" \
Expand All @@ -56,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="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& 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/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.16

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

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="0fb5dc388a4d6f1c7c0e250b5a44466727f35794b0566cad4190cd7c68ca5062" \
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& apk add --no-cache --virtual .fetch-deps \
curl \
ca-certificates \
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.23.0"
REBAR3_VERSION="3.20.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="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& 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
7 changes: 3 additions & 4 deletions 23/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM buildpack-deps:buster

ENV OTP_VERSION="23.3.4.20" \
REBAR3_VERSION="3.23.0"
REBAR3_VERSION="3.20.0" \
REBAR_VERSION="2.6.4"

LABEL org.opencontainers.image.version=$OTP_VERSION

Expand Down Expand Up @@ -40,8 +41,6 @@ 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" \
Expand All @@ -57,7 +56,7 @@ RUN set -xe \

RUN set -xe \
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& 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 23/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM alpine:3.16

ENV OTP_VERSION="23.3.4.20" \
REBAR3_VERSION="3.23.0"
REBAR3_VERSION="3.20.0"

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="887859a686f3278e2a60435713ade724f97e6222cb7693a5f37c6a894ac42f8e" \
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& apk add --no-cache --virtual .fetch-deps \
curl \
ca-certificates \
Expand Down
4 changes: 2 additions & 2 deletions 23/slim/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM debian:buster

ENV OTP_VERSION="23.3.4.20" \
REBAR3_VERSION="3.23.0"
REBAR3_VERSION="3.20.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="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
&& 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 23c0ba4

Please sign in to comment.