osmith has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38338?usp=email )

Change subject: testenv: podman: don't install GUI packages
......................................................................

testenv: podman: don't install GUI packages

Install erlang-nox and use the pre-built rebar3 as linked from
rebar3.org, instead of using the Debian package to avoid pulling in
~600 MB of GUI dependencies.

Related: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083096
Change-Id: I27f58d1f102cf85ff7ff301c52696b65150e2898
---
M _testenv/data/podman/Dockerfile
1 file changed, 9 insertions(+), 1 deletion(-)

Approvals:
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved




diff --git a/_testenv/data/podman/Dockerfile b/_testenv/data/podman/Dockerfile
index 013c03d..294ea82 100644
--- a/_testenv/data/podman/Dockerfile
+++ b/_testenv/data/podman/Dockerfile
@@ -21,6 +21,7 @@
                ca-certificates \
                ccache \
                cmake \
+               erlang-nox \
                flex \
                gdb \
                git \
@@ -62,7 +63,6 @@
                procps \
                psmisc \
                python3-pip \
-               rebar3 \
                rsync \
                source-highlight \
                sqlite3 \
@@ -74,6 +74,14 @@
                && \
        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://s3.amazonaws.com/rebar3/rebar3 -O /usr/bin/rebar3 && \
+       chmod +x /usr/bin/rebar3 && \
+       rebar3 --version
+
 # Ccache is installed above so it can be optionally used when rebuilding the
 # testsuites inside the docker containers. Don't use it by default.
 ENV    USE_CCACHE=0

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

Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I27f58d1f102cf85ff7ff301c52696b65150e2898
Gerrit-Change-Number: 38338
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to