aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-04-14 09:06:26 +0200
committerOliver Smith <osmith@sysmocom.de>2021-04-14 09:39:00 +0200
commit948e450794df0537f035b7c51cf7eff1f1bbfd9e (patch)
treea8928e2973d724153805c0b0f546c962c5f0b76f
parent66a36a078db6ebbada28258eb1b6ba4b8cac6e3e (diff)
osmo-gsm-tester: open5gs deps only for x86_64
mongo-db is only available for x86_64 from their third party repository. Don't attempt to install it for another architecture. As this is part of the open5gs dependencies, don't install any of them either. This should fix the currently failing "update-osmo-ci-on-slaves" jenkins job. I've considered disabling the build of the osmo-gsm-tester container for ARM altogether, but the osmo-gsm-tester manual explicitly mentions ARM trails. Change-Id: Ieed36b1adf4b9ae147c7ee7ade22d4855c3dbac8
-rw-r--r--osmo-gsm-tester/Dockerfile73
1 files changed, 40 insertions, 33 deletions
diff --git a/osmo-gsm-tester/Dockerfile b/osmo-gsm-tester/Dockerfile
index dc8ba1b..a69b5b2 100644
--- a/osmo-gsm-tester/Dockerfile
+++ b/osmo-gsm-tester/Dockerfile
@@ -114,41 +114,48 @@ RUN apt-get update && \
# install open5gs dependencies: (mongodb not available in Debian)
# systemctl stuff: workaround for https://jira.mongodb.org/browse/SERVER-54386
ADD https://www.mongodb.org/static/pgp/server-4.4.asc /tmp/mongodb-server-4.4.asc
-RUN apt-key add /tmp/mongodb-server-4.4.asc && \
- echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" > /etc/apt/sources.list.d/mongodb-org-4.4.list
-RUN apt-get update && \
- systemctl_path=$(which systemctl) && \
- mv $systemctl_path /tmp/systemctl && \
- apt-get install -y --no-install-recommends mongodb-org && \
- apt-get clean && \
- mv /tmp/systemctl $systemctl_path && \
- sed -i "s/127.0.0.1/$OGT_MASTER_ADDR/g" /etc/mongod.conf
+RUN if [ "$(arch)" = "x86_64" ]; then \
+ apt-key add /tmp/mongodb-server-4.4.asc && \
+ echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" \
+ > /etc/apt/sources.list.d/mongodb-org-4.4.list; \
+ fi
+RUN if [ "$(arch)" = "x86_64" ]; then \
+ apt-get update && \
+ systemctl_path=$(which systemctl) && \
+ mv $systemctl_path /tmp/systemctl && \
+ apt-get install -y --no-install-recommends mongodb-org && \
+ apt-get clean && \
+ mv /tmp/systemctl $systemctl_path && \
+ sed -i "s/127.0.0.1/$OGT_MASTER_ADDR/g" /etc/mongod.conf; \
+ fi
# install open5gs dependencies:
-RUN apt-get update && \
- apt-get install -y --no-install-recommends \
- python3-pip \
- python3-setuptools \
- python3-wheel \
- ninja-build \
- build-essential \
- flex \
- bison \
- git \
- libsctp-dev \
- libgnutls28-dev \
- libgcrypt-dev \
- libssl-dev \
- libidn11-dev \
- libmongoc-dev \
- libbson-dev \
- libyaml-dev \
- libnghttp2-dev \
- libmicrohttpd-dev \
- libcurl4-gnutls-dev \
- libnghttp2-dev \
- meson && \
- apt-get clean
+RUN if [ "$(arch)" = "x86_64" ]; then \
+ apt-get update && \
+ apt-get install -y --no-install-recommends \
+ python3-pip \
+ python3-setuptools \
+ python3-wheel \
+ ninja-build \
+ build-essential \
+ flex \
+ bison \
+ git \
+ libsctp-dev \
+ libgnutls28-dev \
+ libgcrypt-dev \
+ libssl-dev \
+ libidn11-dev \
+ libmongoc-dev \
+ libbson-dev \
+ libyaml-dev \
+ libnghttp2-dev \
+ libmicrohttpd-dev \
+ libcurl4-gnutls-dev \
+ libnghttp2-dev \
+ meson && \
+ apt-get clean; \
+ fi
WORKDIR /tmp