Merge pull request #4852 from cevich/release-1.23_backport-fix_ci_using_docker_hub
[release-1.23] Replace registry.centos.org
This commit is contained in:
commit
d8e6952665
|
@ -376,7 +376,7 @@ cat /etc/containers/registries.conf
|
||||||
# and 'registries.block'.
|
# and 'registries.block'.
|
||||||
|
|
||||||
[registries.search]
|
[registries.search]
|
||||||
registries = ['docker.io', 'registry.fedoraproject.org', 'quay.io', 'registry.access.redhat.com', 'registry.centos.org']
|
registries = ['docker.io', 'registry.fedoraproject.org', 'quay.io', 'registry.access.redhat.com']
|
||||||
|
|
||||||
# If you need to access insecure registries, add the registry's fully-qualified name.
|
# If you need to access insecure registries, add the registry's fully-qualified name.
|
||||||
# An insecure registry is one that does not have a valid SSL certificate or only does HTTP.
|
# An insecure registry is one that does not have a valid SSL certificate or only does HTTP.
|
||||||
|
|
|
@ -15,9 +15,18 @@ Conformance tests use Docker CE to build images to be compared with images built
|
||||||
|
|
||||||
## Run conformance tests
|
## Run conformance tests
|
||||||
|
|
||||||
You can run all of the tests with go test:
|
First, pull base images used by various conformance tests:
|
||||||
```
|
```
|
||||||
go test -v -tags "$(./btrfs_tag.sh) $(./btrfs_installed_tag.sh) $(./libdm_tag.sh)" ./tests/conformance
|
bash
|
||||||
|
docker pull alpine
|
||||||
|
docker pull busybox
|
||||||
|
docker pull quay.io/libpod/centos:7
|
||||||
|
```
|
||||||
|
|
||||||
|
Then you can run all of the tests with go test:
|
||||||
|
|
||||||
|
```
|
||||||
|
go test -v -timeout=30m -tags "$(./btrfs_tag.sh) $(./btrfs_installed_tag.sh) $(./libdm_tag.sh)" ./tests/conformance
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to run one of the test cases you can use the "-run" flag:
|
If you want to run one of the test cases you can use the "-run" flag:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Note: Hopefully a registries.conf alias redirects this to quay.io/libpod/busybox
|
||||||
FROM busybox
|
FROM busybox
|
||||||
|
|
||||||
MAINTAINER docker <docker@docker.io>
|
MAINTAINER docker <docker@docker.io>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7 AS base
|
FROM quay.io/libpod/centos:7 AS base
|
||||||
RUN touch -t 201701261659.13 /1
|
RUN touch -t 201701261659.13 /1
|
||||||
ENV LOCAL=/1
|
ENV LOCAL=/1
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
SHELL ["/bin/bash", "-xc"]
|
SHELL ["/bin/bash", "-xc"]
|
||||||
RUN env
|
RUN env
|
|
@ -1,3 +1,3 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
COPY script /usr/bin
|
COPY script /usr/bin
|
||||||
RUN ls -al /usr/bin/script
|
RUN ls -al /usr/bin/script
|
|
@ -1,3 +1,3 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
COPY dir /dir
|
COPY dir /dir
|
||||||
RUN ls -al /dir/file
|
RUN ls -al /dir/file
|
|
@ -1,3 +1,3 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
COPY file1 /usr/bin/file2
|
COPY file1 /usr/bin/file2
|
||||||
RUN ls -al /usr/bin/file2 && ! ls -al /usr/bin/file1
|
RUN ls -al /usr/bin/file2 && ! ls -al /usr/bin/file1
|
|
@ -1,2 +1,2 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
COPY file-link.tar.gz /
|
COPY file-link.tar.gz /
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
COPY file.tar.gz /
|
COPY file.tar.gz /
|
||||||
RUN ln -s file.tar.gz file-link.tar.gz
|
RUN ln -s file.tar.gz file-link.tar.gz
|
||||||
RUN ls -l /file-link.tar.gz
|
RUN ls -l /file-link.tar.gz
|
||||||
FROM registry.centos.org/centos/centos:centos7
|
FROM quay.io/libpod/centos:7
|
||||||
COPY --from=0 /file-link.tar.gz /
|
COPY --from=0 /file-link.tar.gz /
|
||||||
RUN ls -l /file-link.tar.gz
|
RUN ls -l /file-link.tar.gz
|
||||||
|
|
|
@ -12,7 +12,7 @@ load helpers
|
||||||
skip_if_no_runtime
|
skip_if_no_runtime
|
||||||
|
|
||||||
# Build a container to use for building the binaries.
|
# Build a container to use for building the binaries.
|
||||||
image=registry.centos.org/centos/centos:centos7
|
image=quay.io/libpod/centos:7
|
||||||
cid=$(buildah from --pull --signature-policy ${TESTSDIR}/policy.json $image)
|
cid=$(buildah from --pull --signature-policy ${TESTSDIR}/policy.json $image)
|
||||||
root=$(buildah mount $cid)
|
root=$(buildah mount $cid)
|
||||||
commit=$(git log --format=%H -n 1)
|
commit=$(git log --format=%H -n 1)
|
||||||
|
|
Loading…
Reference in New Issue