osmith has uploaded this change for review.

View Change

OBS: fix 45-60 min delay for libosmocore CI jobs

In our jenkins, installing packages for centos7 is very slow when doing
it right before building packages. Work around it by installing all
build dependencies when building the docker image already.

Related: OS#7064
Change-Id: I0983201f6c65589e39d23f30c728fc8b0e2e5069
---
M scripts/obs/data/build_binpkg.Dockerfile
1 file changed, 27 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/01/43301/1
diff --git a/scripts/obs/data/build_binpkg.Dockerfile b/scripts/obs/data/build_binpkg.Dockerfile
index 386147e..fb3df72 100644
--- a/scripts/obs/data/build_binpkg.Dockerfile
+++ b/scripts/obs/data/build_binpkg.Dockerfile
@@ -122,4 +122,31 @@
;; \
esac

+# OS#7064: In our jenkins, installing packages for centos7 is very slow when
+# doing it right before building packages. Work around it by installing all
+# build dependencies when building the docker image already (where for some
+# reason it is not slow). This saves ~45 min for each CI run and can be done
+# here since we only have very few packages that we still must build for
+# centos7.
+# List of packages are from BuildRequires in these files:
+# https://gitea.osmocom.org/osmocom/libosmocore/src/branch/master/contrib/libosmocore.spec.in
+# https://gitea.osmocom.org/osmocom/libosmo-netif/src/branch/master/contrib/libosmo-netif.spec.in
+# https://gitea.osmocom.org/osmocom/osmo-pcap/src/branch/master/contrib/osmo-pcap.spec.in
+RUN case "$DISTRO" in \
+ centos:7) \
+ yum -y install \
+ 'pkgconfig(gnutls)' \
+ 'pkgconfig(libmnl)' \
+ 'pkgconfig(libpcsclite)' \
+ 'pkgconfig(libsystemd)' \
+ 'pkgconfig(libusb-1.0)' \
+ 'pkgconfig(libzmq)' \
+ 'pkgconfig(talloc)' \
+ libpcap-devel \
+ lksctp-tools-devel \
+ python3 \
+ xz \
+ ;; \
+ esac
+
WORKDIR /obs/

To view, visit change 43301. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I0983201f6c65589e39d23f30c728fc8b0e2e5069
Gerrit-Change-Number: 43301
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith@sysmocom.de>