diff options
Diffstat (limited to 'osmo-remsim-master/Dockerfile')
-rw-r--r-- | osmo-remsim-master/Dockerfile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/osmo-remsim-master/Dockerfile b/osmo-remsim-master/Dockerfile index d50f624..ac940c0 100644 --- a/osmo-remsim-master/Dockerfile +++ b/osmo-remsim-master/Dockerfile @@ -1,8 +1,10 @@ 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> @@ -31,7 +33,7 @@ RUN git clone https://github.com/frankmorgner/vsmartcard.git RUN cd vsmartcard/virtualsmartcard && autoreconf -fi && ./configure && make "-j$(nproc)" install -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 @@ -46,7 +48,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 && \ |