tests/docker: use explicit docker.io registry
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 9 Jul 2021 14:29:37 +0000 (15:29 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 14 Jul 2021 13:33:53 +0000 (14:33 +0100)
It is good practice to use an explicit registry for referencing the base
image. This is because some distros will inject their own registries
into the search path. For example registry.fedoraproject.org comes ahead
of docker.io. Using an explicit registry avoids wasting time querying
multiple registries for images that they won't have.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210623142245.307776-5-berrange@redhat.com>
Message-Id: <20210709143005.1554-13-alex.bennee@linaro.org>

tests/docker/dockerfiles/centos8.docker
tests/docker/dockerfiles/debian-xtensa-cross.docker
tests/docker/dockerfiles/debian10.docker
tests/docker/dockerfiles/debian11.docker
tests/docker/dockerfiles/ubuntu.docker
tests/docker/dockerfiles/ubuntu1804.docker
tests/docker/dockerfiles/ubuntu2004.docker

index 03e0440e036eba40d6910517b253c5beefcf921b..8f810810f3e4a1df973f64291d1e4dbc44b9be16 100644 (file)
@@ -1,4 +1,4 @@
-FROM centos:8.3.2011
+FROM docker.io/centos:8
 
 RUN dnf -y update
 ENV PACKAGES \
index ba4148299c5ae8af3776076b3bd2149be95bc0ac..2f11b3b7bc23b791e1884e9cabc87da5d3cbdc97 100644 (file)
@@ -5,7 +5,7 @@
 # using a prebuilt toolchains for Xtensa cores from:
 # https://github.com/foss-xtensa/toolchain/releases
 #
-FROM debian:stretch-slim
+FROM docker.io/library/debian:stretch-slim
 
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
index 4ffe47671e635f065efb14ada53bb84ceb6404dc..a27b88df55ab80397c18ac452719837df5e28fef 100644 (file)
@@ -7,7 +7,7 @@
 # On its own you can't build much but the docker-foo-cross targets
 # build on top of the base debian image.
 #
-FROM debian:buster-slim
+FROM docker.io/library/debian:buster-slim
 
 # Duplicate deb line as deb-src
 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
index 5adfd62d553c3c35ee872dd1f353a5da482e0009..febf884f8fde1dc827735cb07d7db72f42b83aeb 100644 (file)
@@ -8,7 +8,7 @@
 # On its own you can't build much but the docker-foo-cross targets
 # build on top of the base debian image.
 #
-FROM debian:bullseye-slim
+FROM docker.io/library/debian:bullseye-slim
 
 # Duplicate deb line as deb-src
 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
index 100cfa76e3d92d85bc6852479e6408afce2c374c..e0ff425c0196f8229d6650642921f21b730b91d0 100644 (file)
@@ -9,7 +9,7 @@
 # system won't pick up that it has changed.
 #
 
-FROM ubuntu:20.04
+FROM docker.io/library/ubuntu:20.04
 ENV PACKAGES \
     ccache \
     clang \
index 86114be23a09c84c22847a7e31254654d2f3cb6f..adcdef8244c26de975328a52e81031c6573410a7 100644 (file)
@@ -1,4 +1,4 @@
-FROM ubuntu:18.04
+FROM docker.io/library/ubuntu:18.04
 ENV PACKAGES \
     ccache \
     clang \
index b33ed139d92c5621d6aabff75cb4797ea48e3830..78755bc2e3c103752042f18b33031a021edd62ae 100644 (file)
@@ -1,4 +1,4 @@
-FROM ubuntu:20.04
+FROM docker.io/library/ubuntu:20.04
 ENV PACKAGES flex bison \
     bsdmainutils \
     ccache \