pespin has uploaded this change for review. ( 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 erland OTP installed in the system.
Change-Id: I6cd8a61ca52c7beda98b357f82ce42eba54e196b --- M debian-bullseye-erlang/Dockerfile 1 file changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/14/27214/1
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/$%7BREBAR3_VERSION%7D.tar... /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 && \