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
This commit is contained in:
Oliver Smith 2021-04-14 09:06:26 +02:00
parent 66a36a078d
commit 948e450794
1 changed files with 40 additions and 33 deletions

View File

@ -114,18 +114,24 @@ 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 && \
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
sed -i "s/127.0.0.1/$OGT_MASTER_ADDR/g" /etc/mongod.conf; \
fi
# install open5gs dependencies:
RUN apt-get update && \
RUN if [ "$(arch)" = "x86_64" ]; then \
apt-get update && \
apt-get install -y --no-install-recommends \
python3-pip \
python3-setuptools \
@ -148,7 +154,8 @@ RUN apt-get update && \
libcurl4-gnutls-dev \
libnghttp2-dev \
meson && \
apt-get clean
apt-get clean; \
fi
WORKDIR /tmp