From 272d39bc870abedfe933c5fd61d4939378df7fbd Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Mon, 25 Jan 2021 13:22:00 -0500 Subject: [PATCH] osbuilder: Use Fedora and CentOS registries To avoid hitting quota limit on docker.io, this changes the Fedora and CentOS dockerfiles to pull the image from the projects registries. Fixes #1324 Signed-off-by: Wainer dos Santos Moschetta --- tools/osbuilder/image-builder/Dockerfile | 2 +- tools/osbuilder/rootfs-builder/centos/Dockerfile.in | 2 +- tools/osbuilder/rootfs-builder/fedora/Dockerfile.in | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/osbuilder/image-builder/Dockerfile b/tools/osbuilder/image-builder/Dockerfile index c327922587..535136aa0b 100644 --- a/tools/osbuilder/image-builder/Dockerfile +++ b/tools/osbuilder/image-builder/Dockerfile @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: Apache-2.0 -From docker.io/fedora:latest +From registry.fedoraproject.org/fedora:latest RUN [ -n "$http_proxy" ] && sed -i '$ a proxy='$http_proxy /etc/dnf/dnf.conf ; true diff --git a/tools/osbuilder/rootfs-builder/centos/Dockerfile.in b/tools/osbuilder/rootfs-builder/centos/Dockerfile.in index c7714ad18c..2e29195ea8 100644 --- a/tools/osbuilder/rootfs-builder/centos/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/centos/Dockerfile.in @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: Apache-2.0 -From docker.io/centos:@OS_VERSION@ +From registry.centos.org/centos:@OS_VERSION@ @SET_PROXY@ diff --git a/tools/osbuilder/rootfs-builder/fedora/Dockerfile.in b/tools/osbuilder/rootfs-builder/fedora/Dockerfile.in index b67203341f..5d66c5c475 100644 --- a/tools/osbuilder/rootfs-builder/fedora/Dockerfile.in +++ b/tools/osbuilder/rootfs-builder/fedora/Dockerfile.in @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: Apache-2.0 -From docker.io/fedora:@OS_VERSION@ +From registry.fedoraproject.org/fedora:@OS_VERSION@ @SET_PROXY@