[S] Change in docker-playground[master]: debian-bookworm-erlang: use debian's rebar3
osmith has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/34769?usp=email ) Change subject: debian-bookworm-erlang: use debian's rebar3 ...................................................................... debian-bookworm-erlang: use debian's rebar3 Use debian's version of rebar3 instead of downloading a binary. This was useful when the container was based on debian 11 where rebar3 wasn't in debian's repositories. Debian 12 has version 3.19.0. This also solves a caching problem on one of the jenkins nodes, which currently fails at this line: ADD https://github.com/erlang/rebar3/archive/refs/tags/${REBAR3_VERSION}.tar.gz /tmp/rebar3.tar.gz with: ERROR: failed to solve: failed to load cache key: invalid not-modified ETag: "fce57989250a021a2be5fe5eddd655d6d415eef04f769bf1437f3d6dddfa5559" My understanding is that docker has cached an ETag that is no longer valid / maybe the format changed - and instead of simply requesting the file again, it just fails there. Related: https://en.wikipedia.org/wiki/HTTP_ETag Change-Id: I69e02d004a0bd6f9d3a462f4e184b3e9361cc7fe --- M debian-bookworm-erlang/Dockerfile 1 file changed, 26 insertions(+), 11 deletions(-) Approvals: pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/debian-bookworm-erlang/Dockerfile b/debian-bookworm-erlang/Dockerfile index 811500e..ec5ed52 100644 --- a/debian-bookworm-erlang/Dockerfile +++ b/debian-bookworm-erlang/Dockerfile @@ -8,25 +8,16 @@ ARG OSMOCOM_REPO="${OSMOCOM_REPO_MIRROR}/${OSMOCOM_REPO_PATH}/latest/Debian_12/" ARG UID -# Install the erlang vm and rebar (2) +# Install the erlang vm and rebar (2 and 3) RUN set -x && \ apt-get update && \ apt-get install -y --no-install-recommends \ erlang \ rebar \ + rebar3 \ && \ apt-get clean -# Add 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 set -x && \ - tar -zxf /tmp/rebar3.tar.gz && \ - cd rebar3-${REBAR3_VERSION} && \ - ./bootstrap && \ - install -Dm0755 "rebar3" "/usr/bin/rebar3" && \ - rm /tmp/rebar3.tar.gz - # Install minimal build utilities as well as system utilities RUN set -x && \ apt-get update && \ -- To view, visit https://gerrit.osmocom.org/c/docker-playground/+/34769?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: docker-playground Gerrit-Branch: master Gerrit-Change-Id: I69e02d004a0bd6f9d3a462f4e184b3e9361cc7fe Gerrit-Change-Number: 34769 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: osmith <osmith@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-MessageType: merged
participants (1)
-
osmith