osmith submitted this change.
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(-)
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 change 38338. To unsubscribe, or for help writing mail filters, visit settings.