aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-08-19 10:40:31 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-08-19 10:40:31 +0200
commit3e9084405499a34b7e171c31743c3ea94a81d744 (patch)
treef79521b62842b777489b8320754c0c564efd6939
parent9f283fd1bbfcdeb2a53ca79cdd343f2726bcc2ee (diff)
downloadpodman-docker-builder-3e9084405499a34b7e171c31743c3ea94a81d744.tar.gz
more mirror tweaks
-rw-r--r--Dockerfile3
-rwxr-xr-xconfigure-mirror2
2 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 95e679d..872a004 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,4 +10,5 @@ LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \
USER root
COPY configure-* /usr/local/bin
-RUN /usr/local/bin/configure-podman
+RUN /usr/local/bin/configure-mirror && \
+ /usr/local/bin/configure-podman
diff --git a/configure-mirror b/configure-mirror
index 85ea475..f895e78 100755
--- a/configure-mirror
+++ b/configure-mirror
@@ -37,3 +37,5 @@ set_baseurl http://download.fedoraproject.org/ "${FEDORA_MIRROR}" FEDORA_MIRROR
#
grep -q max_parallel_downloads /etc/dnf/dnf.conf ||\
echo max_parallel_downloads=1 >> /etc/dnf/dnf.conf
+
+exit 0