pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/docker-playground/+/27214 )

Change subject: debian-bullseye-erlang: Build rebar3 from source
......................................................................

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(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



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 https://gerrit.osmocom.org/c/docker-playground/+/27214
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I6cd8a61ca52c7beda98b357f82ce42eba54e196b
Gerrit-Change-Number: 27214
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to