aboutsummaryrefslogtreecommitdiffstats
path: root/osmo-mgw-master
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-11-18 17:52:56 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-12-02 14:27:02 +0100
commit7d7a06b749fbfefdb55b9dff3b727d17a38004f5 (patch)
tree606a7aeadf45fe56639b1ef9cd9d6a5aba2b53aa /osmo-mgw-master
parent78ae9377a743db01c6d1b26daf563ef2f8f7eb6e (diff)
common: Introduce OSMOCOM_REPO_MIRROR param
This allows easily changing to another osmocom repo base URL if the default one is down. Related: OS#4862 Change-Id: I8010b08f3dabacfb3c13a44eece6c7a490e0742e
Diffstat (limited to 'osmo-mgw-master')
-rw-r--r--osmo-mgw-master/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/osmo-mgw-master/Dockerfile b/osmo-mgw-master/Dockerfile
index ccc5d80..12dd1b0 100644
--- a/osmo-mgw-master/Dockerfile
+++ b/osmo-mgw-master/Dockerfile
@@ -1,12 +1,14 @@
ARG USER
ARG DISTRO
+ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
FROM $USER/$DISTRO-build
# Arguments used after FROM must be specified again
ARG DISTRO
+ARG OSMOCOM_REPO_MIRROR="http://download.opensuse.org"
MAINTAINER Harald Welte <laforge@gnumonks.org>
-ARG OSMOCOM_REPO="http://download.opensuse.org/repositories/network:/osmocom:/nightly/Debian_9.0/"
+ARG OSMOCOM_REPO="$OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/Debian_9.0/"
COPY Release.key /tmp/Release.key
@@ -21,7 +23,7 @@ RUN case "$DISTRO" in \
# we need to add this to invalidate the cache once the repository is updated.
# unfortunately Dockerfiles don't support a conditional ARG, so we need to add both DPKG + RPM
ADD $OSMOCOM_REPO/Release /tmp/Release
-ADD http://download.opensuse.org/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
+ADD $OSMOCOM_REPO_MIRROR/repositories/network:/osmocom:/nightly/CentOS_8_Stream/repodata/repomd.xml /tmp/repomd.xml
RUN case "$DISTRO" in \
debian*) \
apt-get update && \