Skip to content

Commit abb6134

Browse files
committed
Downgrade Rebar3 to 3.20.0 for OTP 22/23
Rebar3 3.20.1 official deprecated support for OTP 23. See: - #473 - https://github.com/erlang/rebar3/releases/tag/3.21.0 - erlang/rebar3#2791
1 parent 8b81283 commit abb6134

File tree

6 files changed

+14
-16
lines changed

6 files changed

+14
-16
lines changed

22/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM buildpack-deps:buster
22

33
ENV OTP_VERSION="22.3.4.27" \
4-
REBAR3_VERSION="3.23.0"
4+
REBAR3_VERSION="3.20.0" \
5+
REBAR_VERSION="2.6.4"
56

67
LABEL org.opencontainers.image.version=$OTP_VERSION
78

@@ -39,8 +40,6 @@ CMD ["erl"]
3940

4041
# extra useful tools here: rebar & rebar3
4142

42-
ENV REBAR_VERSION="2.6.4"
43-
4443
RUN set -xe \
4544
&& REBAR_DOWNLOAD_URL="https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz" \
4645
&& REBAR_DOWNLOAD_SHA256="577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07" \
@@ -56,7 +55,7 @@ RUN set -xe \
5655

5756
RUN set -xe \
5857
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
59-
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
58+
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
6059
&& mkdir -p /usr/src/rebar3-src \
6160
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \
6261
&& echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - \

22/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM alpine:3.16
22

33
ENV OTP_VERSION="22.3.4.27" \
4-
REBAR3_VERSION="3.23.0"
4+
REBAR3_VERSION="3.20.0"
55

66
LABEL org.opencontainers.image.version=$OTP_VERSION
77

88
RUN set -xe \
99
&& OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" \
1010
&& OTP_DOWNLOAD_SHA256="0fb5dc388a4d6f1c7c0e250b5a44466727f35794b0566cad4190cd7c68ca5062" \
11-
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
11+
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
1212
&& apk add --no-cache --virtual .fetch-deps \
1313
curl \
1414
ca-certificates \

22/slim/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:buster
22

33
ENV OTP_VERSION="22.3.4.27" \
4-
REBAR3_VERSION="3.23.0"
4+
REBAR3_VERSION="3.20.0"
55

66
LABEL org.opencontainers.image.version=$OTP_VERSION
77

@@ -47,7 +47,7 @@ RUN set -xe \
4747
&& make install ) \
4848
&& find /usr/local -name examples | xargs rm -rf \
4949
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
50-
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
50+
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
5151
&& mkdir -p /usr/src/rebar3-src \
5252
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \
5353
&& echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - \

23/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FROM buildpack-deps:buster
22

33
ENV OTP_VERSION="23.3.4.20" \
4-
REBAR3_VERSION="3.23.0"
4+
REBAR3_VERSION="3.20.0" \
5+
REBAR_VERSION="2.6.4"
56

67
LABEL org.opencontainers.image.version=$OTP_VERSION
78

@@ -40,8 +41,6 @@ CMD ["erl"]
4041

4142
# extra useful tools here: rebar & rebar3
4243

43-
ENV REBAR_VERSION="2.6.4"
44-
4544
RUN set -xe \
4645
&& REBAR_DOWNLOAD_URL="https://github.com/rebar/rebar/archive/${REBAR_VERSION}.tar.gz" \
4746
&& REBAR_DOWNLOAD_SHA256="577246bafa2eb2b2c3f1d0c157408650446884555bf87901508ce71d5cc0bd07" \
@@ -57,7 +56,7 @@ RUN set -xe \
5756

5857
RUN set -xe \
5958
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
60-
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
59+
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
6160
&& mkdir -p /usr/src/rebar3-src \
6261
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \
6362
&& echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - \

23/alpine/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM alpine:3.16
22

33
ENV OTP_VERSION="23.3.4.20" \
4-
REBAR3_VERSION="3.23.0"
4+
REBAR3_VERSION="3.20.0"
55

66
LABEL org.opencontainers.image.version=$OTP_VERSION
77

88
RUN set -xe \
99
&& OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" \
1010
&& OTP_DOWNLOAD_SHA256="887859a686f3278e2a60435713ade724f97e6222cb7693a5f37c6a894ac42f8e" \
11-
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
11+
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
1212
&& apk add --no-cache --virtual .fetch-deps \
1313
curl \
1414
ca-certificates \

23/slim/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM debian:buster
22

33
ENV OTP_VERSION="23.3.4.20" \
4-
REBAR3_VERSION="3.23.0"
4+
REBAR3_VERSION="3.20.0"
55

66
LABEL org.opencontainers.image.version=$OTP_VERSION
77

@@ -47,7 +47,7 @@ RUN set -xe \
4747
&& make install ) \
4848
&& find /usr/local -name examples | xargs rm -rf \
4949
&& REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" \
50-
&& REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" \
50+
&& REBAR3_DOWNLOAD_SHA256="53ed7f294a8b8fb4d7d75988c69194943831c104d39832a1fa30307b1a8593de" \
5151
&& mkdir -p /usr/src/rebar3-src \
5252
&& curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" \
5353
&& echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - \

0 commit comments

Comments
 (0)