Skip to content

Commit

Permalink
Merge pull request #14498 from aerique/feature/use-el-7-in-repo-test-…
Browse files Browse the repository at this point in the history
…script

Switch to `oraclelinux:7` for CentOS 7 repo tests.
  • Loading branch information
aerique authored Jul 18, 2024
2 parents 7b00de8 + 0eb5442 commit 4d6b4d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
6 changes: 3 additions & 3 deletions build-scripts/docker/repo-test/generate-repo-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def write_dockerfile (os, os_version, release):
os_image = os

if release.startswith('auth-'):
if os in ('centos', 'el'):
if os in ('el'):
pkg = 'pdns'
else:
pkg = 'pdns-server'
Expand Down Expand Up @@ -140,7 +140,7 @@ def write_release_files (release):
'rec-48', 'rec-49', 'rec-50', 'rec-51', 'rec-master',
'dnsdist-17', 'dnsdist-18', 'dnsdist-19', 'dnsdist-master']:
write_pkg_pin_file(release)
write_dockerfile('centos', '7', release)
write_dockerfile('el', '7', release)
write_dockerfile('el', '8', release)
write_dockerfile('el', '9', release)
write_dockerfile('debian', 'buster', release)
Expand Down Expand Up @@ -241,7 +241,7 @@ def test_release (release, arch='x86_64'):
returned_versions = []
print('=== testing {} ({}) ==='.format(release, arch))
for df in dockerfiles:
if arch == 'aarch64' and str(df).endswith('centos-7'):
if arch == 'aarch64' and str(df).endswith('el-7'):
continue
if arch == 'aarch64' and not release in ['rec-49', 'rec-50', 'rec-51', 'rec-master',
'dnsdist-19', 'dnsdist-master']:
Expand Down
22 changes: 0 additions & 22 deletions build-scripts/docker/repo-test/templates/Dockerfile-centos.jinja2

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
FROM {{ os_image }}:{{ os_version }}

{% if os_version == '8' or os_version == '9' %}
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ os_version }}.noarch.rpm bind-utils
{% endif %}

{% if os_version == '7' %}
RUN yum install -y yum-plugin-priorities
{% endif %}
RUN yum install -y oracle-epel-release-el{{ os_version }} bind-utils

{% if release == 'dnsdist-15' and os_version == '8' %}
RUN dnf install -y 'dnf-command(config-manager)'
Expand Down

0 comments on commit 4d6b4d6

Please sign in to comment.