Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Add CentOS 8 to the ansible-pulp CI
Browse files Browse the repository at this point in the history
Partial implementation

fixes: #6262
  • Loading branch information
mikedep333 committed Mar 6, 2020
1 parent ef482ae commit 56cdde3
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
4 changes: 4 additions & 0 deletions molecule/default/molecule.yml
Expand Up @@ -27,6 +27,10 @@ platforms:
name: centos-7
image: centos:7
command: /sbin/init
- <<: *platform_base
name: centos-8
image: centos:8
command: /sbin/init
- <<: *platform_base
name: debian-10
image: debian:buster
Expand Down
4 changes: 4 additions & 0 deletions molecule/dynamic/molecule.yml
Expand Up @@ -27,6 +27,10 @@ platforms:
name: centos-7
image: centos:7
command: /sbin/init
- <<: *platform_base
name: centos-8
image: centos:8
command: /sbin/init
- <<: *platform_base
name: debian-10
image: debian:buster
Expand Down
12 changes: 9 additions & 3 deletions molecule/scenario_resources/Dockerfile.j2
Expand Up @@ -16,7 +16,7 @@ FROM {{ item.image }}

ENV container docker

{% if item.name.startswith('centos') -%}
{% if item.name.startswith('centos-7') -%}

RUN yum install -y epel-release ;\
yum makecache fast ;\
Expand Down Expand Up @@ -61,9 +61,15 @@ apt-get -y install \
apt-get clean &&\
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
systemctl enable firewalld
{% elif item.name.startswith('fedora') -%}
{% else -%}
# fedora or centos-8

RUN dnf makecache ;\
# Pulp requires CentOS 8.2 or later. 8.2 is currently CentOS Stream.
RUN grep -v "CentOS" /etc/redhat-release || dnf install -y centos-release-stream epel-release ;\
dnf makecache ;\
grep -v "CentOS Linux release 8.1." /etc/redhat-release || dnf update -y ;\
grep -v "CentOS Linux release 8.1." /etc/redhat-release || dnf install -y centos-release-stream ;\
dnf update -y ;\
dnf --assumeyes install \
bash \
firewalld \
Expand Down
4 changes: 4 additions & 0 deletions molecule/source-dynamic/molecule.yml
Expand Up @@ -23,6 +23,10 @@ lint: |
- NET_ADMIN
- NET_RAW
platforms:
- <<: *platform_base
name: centos-8
image: centos:8
command: /sbin/init
- <<: *platform_base
name: debian-10
image: debian:buster
Expand Down
4 changes: 4 additions & 0 deletions molecule/source/molecule.yml
Expand Up @@ -23,6 +23,10 @@ lint: |
- NET_ADMIN
- NET_RAW
platforms:
- <<: *platform_base
name: centos-8
image: centos:8
command: /sbin/init
- <<: *platform_base
name: debian-10
image: debian:buster
Expand Down

0 comments on commit 56cdde3

Please sign in to comment.