pespin submitted this change.
debian-bullseye-erlang: Build rebar3 from source
This way we ensure it is always built against the same erlang OTP
installed in the system.
Change-Id: I6cd8a61ca52c7beda98b357f82ce42eba54e196b
---
M debian-bullseye-erlang/Dockerfile
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian-bullseye-erlang/Dockerfile b/debian-bullseye-erlang/Dockerfile
index b5d8f5b..15da137 100644
--- a/debian-bullseye-erlang/Dockerfile
+++ b/debian-bullseye-erlang/Dockerfile
@@ -16,8 +16,12 @@
rebar
# add rebar3
-ADD https://s3.amazonaws.com/rebar3/rebar3 /usr/bin/rebar3
-RUN chmod 0755 /usr/bin/rebar3
+ARG REBAR3_VERSION="3.18.0"
+ADD https://github.com/erlang/rebar3/archive/refs/tags/${REBAR3_VERSION}.tar.gz /tmp/rebar3.tar.gz
+RUN tar -zxf /tmp/rebar3.tar.gz && \
+ cd rebar3-${REBAR3_VERSION} && \
+ ./bootstrap && \
+ install -Dm0755 "rebar3" "/usr/bin/rebar3"
# install ninimal build utilities as well as system utilities
RUN apt-get update && \
To view, visit change 27214. To unsubscribe, or for help writing mail filters, visit settings.