osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/41368?usp=email )


Change subject: OBS: build_srcpkg: install rebar3 without apt
......................................................................

OBS: build_srcpkg: install rebar3 without apt

Avoid pulling in 600 MB of GUI dependencies.

Related: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083096
Change-Id: I9a51df03ac173118c35d501bd21c6d023a436844
---
M scripts/obs/data/build_srcpkg.Dockerfile
1 file changed, 10 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/68/41368/1

diff --git a/scripts/obs/data/build_srcpkg.Dockerfile 
b/scripts/obs/data/build_srcpkg.Dockerfile
index 4822450..8b57931 100644
--- a/scripts/obs/data/build_srcpkg.Dockerfile
+++ b/scripts/obs/data/build_srcpkg.Dockerfile
@@ -11,6 +11,7 @@
                debhelper \
                dh-python \
                dpkg-dev \
+               erlang-nox \
                fakeroot \
                git \
                git-review \
@@ -22,11 +23,19 @@
                python3-packaging \
                python3-setuptools \
                quilt \
-               rebar3 \
                sed \
                sphinx-common \
+               wget \
                && \
        apt-get clean

+# Install rebar3 as described in https://rebar3.org/docs/getting-started/
+# instead of using the Debian package, as the latter pulls in ~600 MB of GUI
+# dependencies that we don't need:
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083096
+RUN    wget https://github.com/erlang/rebar3/releases/download/3.24.0/rebar3 
-O /usr/bin/rebar3 && \
+       chmod +x /usr/bin/rebar3 && \
+       rebar3 --version
+
 RUN    useradd --uid=${UID} -m user
 USER   user

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/41368?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I9a51df03ac173118c35d501bd21c6d023a436844
Gerrit-Change-Number: 41368
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to