centos8-build: Use arg OSMOCOM_REPO_MIRROR

Change-Id: If2aefff04792fe4d215fcc52377bec64d9a1db2d
This commit is contained in:
Pau Espin Pedrol 2020-12-07 16:49:30 +01:00 committed by laforge
parent 120f786a54
commit ffd76f2060
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
ARG REGISTRY=docker.io
ARG UPSTREAM_DISTRO=centos:centos8
FROM ${REGISTRY}/${UPSTREAM_DISTRO}
ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
# Let package metadata expire after 60 seconds instead of 48 hours
RUN echo "metadata_expire=60" >> /etc/dnf/dnf.conf && cat /etc/dnf/dnf.conf
@ -9,7 +10,7 @@ RUN echo "metadata_expire=60" >> /etc/dnf/dnf.conf && cat /etc/dnf/dnf.conf
RUN dnf install -y dnf-utils wget && \
yum config-manager --set-enabled powertools && \
cd /etc/yum.repos.d/ && \
wget https://download.opensuse.org/repositories/network:osmocom:nightly/CentOS_8_Stream/network:osmocom:nightly.repo
wget $OSMOCOM_REPO_MIRROR/repositories/network:osmocom:nightly/CentOS_8_Stream/network:osmocom:nightly.repo
RUN dnf install -y \
autoconf \