Skip to content

Commit

Permalink
ci & tests: Switch to quay.io/fedora/fedora
Browse files Browse the repository at this point in the history
Fedora is planning on deprecating the registry and moving to quay.io for
all containers.

Existing containers are mirrors to quay.io so we should be able to
switch now.

See: https://discussion.fedoraproject.org/t/registry-fedoraproject-org-to-quay-io-migration/88231
See: https://pagure.io/fedora-infrastructure/issue/10386
  • Loading branch information
travier committed Sep 21, 2023
1 parent 20f7a4a commit 822de2c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ci/buildroot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#
# This image is used by CoreOS CI to build software like
# Ignition, rpm-ostree, ostree, coreos-installer, etc...
FROM registry.fedoraproject.org/fedora:38
FROM quay.io/fedora/fedora:38
COPY . /src
RUN ./src/install-buildroot.sh && yum clean all && rm /src -rf
2 changes: 1 addition & 1 deletion tests/kola/binfmt/qemu
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -xeuo pipefail

case "$(arch)" in
aarch64|ppc64le|s390x)
containerArch=$(podman run --arch=amd64 --rm registry.fedoraproject.org/fedora:38 arch)
containerArch=$(podman run --arch=amd64 --rm quay.io/fedora/fedora:38 arch)
if [ "$containerArch" != "x86_64" ]; then
fatal "Test failed: x86_64 qemu emulator failed to run"
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/kola/containers/quadlet/config.bu
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ storage:
Description=A minimal container

[Container]
Image=registry.fedoraproject.org/fedora-minimal
Image=quay.io/fedora/fedora-minimal
Exec=sleep 60
Volume=test.volume:/data
Network=test.network
Expand Down
2 changes: 1 addition & 1 deletion tests/kola/containers/quadlet/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [[ "$(podman network inspect systemd-test | jq -r '.[0].labels."org.test.Key"
fatal "Network not correctly created"
fi

if [[ "$(podman inspect systemd-test | jq -r '.[0].ImageName')" != "registry.fedoraproject.org/fedora-minimal:latest" ]]; then
if [[ "$(podman inspect systemd-test | jq -r '.[0].ImageName')" != "quay.io/fedora/fedora-minimal:latest" ]]; then
fatal "Container not using the correct image"
fi

Expand Down
2 changes: 1 addition & 1 deletion tests/kola/docker/basic
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ set -xeuo pipefail
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

docker run --rm registry.fedoraproject.org/fedora:38 true
docker run --rm quay.io/fedora/fedora:38 true

ok "basic docker run successfully"
2 changes: 1 addition & 1 deletion tests/kola/ntp/data/ntplib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ntp_test_setup() {
# run podman commands to set up dnsmasq server
pushd "$(mktemp -d)"
cat <<EOF >Dockerfile
FROM registry.fedoraproject.org/fedora:38
FROM quay.io/fedora/fedora:38
RUN dnf -y install systemd dnsmasq iproute iputils \
&& dnf clean all \
&& systemctl enable dnsmasq
Expand Down
2 changes: 1 addition & 1 deletion tests/kola/podman/dns/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runascoreuserscript='
set -euxo pipefail
podman network create testnetwork
podman run --rm -t --network=testnetwork registry.fedoraproject.org/fedora:38 getent hosts google.com
podman run --rm -t --network=testnetwork quay.io/fedora/fedora:38 getent hosts google.com
podman network rm testnetwork
'

Expand Down
2 changes: 1 addition & 1 deletion tests/kola/podman/rootless-pasta-networking
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ set -xeuo pipefail
runascoreuserscript='#!/bin/bash
set -euxo pipefail
# Just a basic test that uses pasta network and sets the gateway
podman run -i --net=pasta:--mtu,1500 registry.fedoraproject.org/fedora:38 bash <<"EOF"
podman run -i --net=pasta:--mtu,1500 quay.io/fedora/fedora:38 bash <<"EOF"
set -euxo pipefail
# Verify the mtu got set to 1500. No /sbin/ip so just use /sys/class/net/<nic>/mtu
cat /sys/class/net/e*/mtu | grep 1500
Expand Down
2 changes: 1 addition & 1 deletion tests/kola/podman/rootless-systemd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ set -euxo pipefail
# https://github.com/coreos/coreos-assembler/issues/1645
cd $(mktemp -d)
cat <<EOF > Containerfile
FROM registry.fedoraproject.org/fedora:38
FROM quay.io/fedora/fedora:38
RUN dnf -y update \
&& dnf -y install systemd httpd \
&& dnf clean all \
Expand Down
2 changes: 1 addition & 1 deletion tests/kola/selinux/podman-tmpfs-context
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -xeuo pipefail
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

context=$(podman run --rm --privileged registry.fedoraproject.org/fedora:38 \
context=$(podman run --rm --privileged quay.io/fedora/fedora:38 \
bash -c "mount -t tmpfs tmpfs /mnt/ && stat --format '%C' /mnt/")
if [ "$context" != "system_u:object_r:container_file_t:s0" ]; then
fatal "SELinux context for files on a tmpfs inside a container is wrong"
Expand Down
2 changes: 1 addition & 1 deletion tests/kola/toolbox/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -xeuo pipefail
# shellcheck disable=SC1091
. "$KOLA_EXT_DATA/commonlib.sh"

# Try five times to create the toolbox to avoid Fedora registry infra flakes
# Try five times to create the toolbox to avoid container registry infra flakes
for i in $(seq 1 5); do
machinectl shell core@ /bin/toolbox create --assumeyes 1>/dev/null
if [[ $(machinectl shell core@ /bin/toolbox list --containers | grep --count fedora-toolbox-) -ne 1 ]]; then
Expand Down

0 comments on commit 822de2c

Please sign in to comment.