Skip to content

Commit e8fa220

Browse files
committedMar 20, 2017
Switch default testing to RHEL from CentOS
Some places, the CentOS image is still referenced because for those specific tests, it's better to use a non-default image. Also, in most places, updated the CentOS tag from 7 -> latest. Mainly for cosmetic purposes, though it does squah any confusion that perhaps the 7-GA version was being used. Signed-off-by: Chris Evich <[email protected]>
1 parent 899e98a commit e8fa220

File tree

15 files changed

+20
-23
lines changed

15 files changed

+20
-23
lines changed
 

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM docker.io/stackbrew/centos:7
1+
FROM docker.io/stackbrew/centos:latest
22
MAINTAINER cevich@redhat.com
33
RUN echo -e "\nIt works!\n"

‎config_defaults/defaults.ini

+5-7
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,23 @@ __example__ = docker_repo_name, docker_repo_tag, preserve_fqins
3131

3232
#: Default registry settings for testing
3333
#: (blank if not applicable)
34-
docker_repo_name = centos
34+
docker_repo_name = rhel
3535
#: Default image settings for testing
3636
#: (blank if not applicable)
37-
docker_repo_tag = 7
37+
docker_repo_tag = latest
3838

3939
#: remote components (host:port)
40-
docker_registry_host = docker.io
40+
docker_registry_host = registry.access.redhat.com
4141
#: remote components (username)
42-
docker_registry_user = stackbrew
42+
docker_registry_user = rhel7
4343

4444
##### Operational testing options
4545

4646
#: Attempt to remove all created containers/images during test
4747
remove_after_test = yes
4848

4949
#: CSV of possibly existing **full** image names to preserve.
50-
preserve_fqins = docker.io/stackbrew/centos:7,
51-
docker.io/stackbrew/centos:centos7,
52-
docker.io/stackbrew/centos:latest
50+
preserve_fqins = registry.access.redhat.com/rhel7/rhel:latest
5351

5452
#: CSV of possibly existing **full** container names to preserve.
5553
preserve_cnames =

‎config_defaults/pretests.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ subsubtests = puller,builder
55
#: to prefetch before the build subtests because those count images
66
#: before & after the test. One way to cross-check this value is:
77
#: find . -name Dockerfile|xargs grep -h FROM|sort -u
8-
extra_fqins_csv = docker.io/stackbrew/centos:7
8+
extra_fqins_csv = docker.io/stackbrew/centos:latest
99
#: Whether or not to update ``config_custom/defaults.ini``'s preserve_fqins
1010
#: with any images pulled, built, etc. from sub-subtests.
1111
update_defaults_ini = True

‎config_defaults/subtests/docker_cli/build.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ dockerfile_dir_path = https://raw.githubusercontent.com/autotest/autotest-docker
7979
docker_registry_host = docker.io
8080
docker_registry_user = stackbrew
8181
docker_repo_name = centos
82-
docker_repo_tag = 7
82+
docker_repo_tag = latest
8383
# Inherits options from main subtest section (above)
8484
# no need to repeat them here.
8585

@@ -91,7 +91,7 @@ dockerfile_dir_path = git://github.com/autotest/autotest-docker.git
9191
docker_registry_host = docker.io
9292
docker_registry_user = stackbrew
9393
docker_repo_name = centos
94-
docker_repo_tag = 7
94+
docker_repo_tag = latest
9595
postproc_cmd_csv = positive(),
9696
rx_out('Removing intermediate container'),
9797
rx_out('\s*Successfully built\s*(\w{64}|\w{12})'),

‎config_defaults/subtests/docker_cli/create.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ cmd = '/bin/command/does/not/exist'
4343
__example__ = remote_image_fqin, docker_timeout
4444
docker_timeout = 240
4545
#: Fully qualified image name of **remote** repository to test automatic pull.
46-
remote_image_fqin = stackbrew/centos:7
46+
remote_image_fqin = docker.io/stackbrew/centos:latest
4747
run_options_csv =

‎config_defaults/subtests/docker_cli/run.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ cmd = 'sleep 5s && echo "%(secret_sauce)s"'
6868
#: Change this to an image remotely available within test environment
6969
__example__ = remote_image_fqin
7070
#: Fully qualified image name stored on a remote registry, not local.
71-
remote_image_fqin = stackbrew/centos:7
71+
remote_image_fqin = docker.io/stackbrew/centos:latest
7272
run_options_csv =
7373
cmd = /bin/true
7474

‎config_defaults/subtests/docker_cli/tag.ini

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ subsubtests = change_tag,change_repository,change_user,double_tag,double_tag_for
77
#: testing repo_name_prefix
88
tag_repo_name_prefix = test
99
#: Works best with remote registry provided repository
10-
__example__ = docker_registry_host, docker_registry_user, docker_repo_name, docker_repo_tag
1110
docker_repo_name = centos
1211
docker_repo_tag = 7
1312
docker_registry_user = stackbrew
14-
docker_registry_host =
13+
docker_registry_host = docker.io
1514

1615
[docker_cli/tag/change_tag]
1716

‎index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Prerequisites
8383
* Red Hat Enterprise Linux 7 Server (preferred for development)
8484
* Red Hat Enterprise Linux Atomic Host (preferred for testing)
8585
* Fedora 22 or later including Atomic (not all tests may function)
86-
* Other platforms (such as Ubuntu) un-maintained but possible.
86+
* Other platforms (such as CentOs, SLES, Ubuntu) un-maintained but possible.
8787

8888
* Platform Applications/tools
8989

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM stackbrew/centos:centos7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
ENV PATH /usr/sbin:/usr/bin
33
ADD <url> .

‎subtests/docker_cli/build/bad/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stackbrew/centos:centos7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
MAINTAINER cevich@redhat.com
33
ENV PATH /usr/sbin:/usr/bin
44
RUN echo "Schazam!"

‎subtests/docker_cli/build/dockerignore/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stackbrew/centos:7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
ADD not_ignored_file not_ignored_dir testdir/
33
ADD . /
44
ADD / /
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM stackbrew/centos:centos7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
ENV PATH /usr/sbin:/usr/bin
33
EXPOSE 8080

‎subtests/docker_cli/build/full/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stackbrew/centos:7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
MAINTAINER cevich@redhat.com
33
ENV PATH /usr/sbin:/usr/bin
44
RUN echo "Schazam!"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM stackbrew/centos:centos7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
ENV PATH /usr/sbin:/usr/bin
33
VOLUME ["/foo", "/foo/bar", "/usr/local/lib/baz"]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM stackbrew/centos:centos7
1+
FROM registry.access.redhat.com/rhel7/rhel:latest
22
MAINTAINER cevich@redhat.com
33
ENV PATH /usr/sbin:/usr/bin
44
RUN echo "Schazam!"

0 commit comments

Comments
 (0)
Please sign in to comment.