From 0a5e854a4ed867894347a59282ff079108010856 Mon Sep 17 00:00:00 2001 From: Zach Hoffman Date: Mon, 22 Jul 2024 11:21:57 -0600 Subject: [PATCH] Update remaining images from CentOS 7 to Rocky Linux 8 --- grove/integration_test/Dockerfile | 16 ++++++++-------- .../ansible/sample.lab/Ansible.Dockerfile | 19 +++++++++---------- traffic_router/tests/Dockerfile-test-centos | 10 +++++----- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/grove/integration_test/Dockerfile b/grove/integration_test/Dockerfile index 2ac69879fb..804efe42b2 100644 --- a/grove/integration_test/Dockerfile +++ b/grove/integration_test/Dockerfile @@ -16,15 +16,15 @@ # specific language governing permissions and limitations # under the License. -FROM centos:7 +FROM rockylinux:8 -RUN yum -y --setopt=tsflags=nodocs update && \ - yum -y --setopt=tsflags=nodocs install httpd && \ - yum -y --setopt=tsflags=nodocs install perl && \ - yum -y --setopt=tsflags=nodocs install git && \ - yum -y --setopt=tsflags=nodocs install golang && \ - yum -y --setopt=tsflags=nodocs install openssl && \ - yum clean all +RUN dnf -y --setopt=tsflags=nodocs update && \ + dnf -y --setopt=tsflags=nodocs install httpd && \ + dnf -y --setopt=tsflags=nodocs install perl && \ + dnf -y --setopt=tsflags=nodocs install git && \ + dnf -y --setopt=tsflags=nodocs install golang && \ + dnf -y --setopt=tsflags=nodocs install openssl && \ + dnf clean all #EXPOSE 80 diff --git a/infrastructure/ansible/sample.lab/Ansible.Dockerfile b/infrastructure/ansible/sample.lab/Ansible.Dockerfile index 3ff0de57ac..2d3d14c767 100644 --- a/infrastructure/ansible/sample.lab/Ansible.Dockerfile +++ b/infrastructure/ansible/sample.lab/Ansible.Dockerfile @@ -12,23 +12,22 @@ # limitations under the License. # -FROM centos:7.4.1708 -MAINTAINER Jonathan Gray -RUN yum -y install epel-release \ - && yum -y install \ +FROM rockylinux:8 +RUN dnf -y install epel-release \ + && dnf -y install \ ansible \ git \ - python-pip \ - python-devel \ + python3-pip \ + python3-devel \ libxml2-devel \ libxslt-devel \ libffi-devel \ openssl-devel \ gcc \ - && yum clean all \ - && pip install --upgrade pip \ - && pip install --upgrade setuptools \ - && pip install --upgrade pyOpenSSL python-gilt paramiko Jinja2 + && dnf clean all \ + && pip3 install --upgrade pip \ + && pip3 install --upgrade setuptools \ + && pip3 install --upgrade pyOpenSSL python-gilt paramiko Jinja2 RUN mkdir -p /opt/atc/ && mkdir ~/.ssh && echo -e "Host *\n StrictHostKeyChecking no\n UserKnownHostsFile=/dev/null" > ~/.ssh/config COPY . /opt/atc diff --git a/traffic_router/tests/Dockerfile-test-centos b/traffic_router/tests/Dockerfile-test-centos index 384352cae0..e6486eb742 100644 --- a/traffic_router/tests/Dockerfile-test-centos +++ b/traffic_router/tests/Dockerfile-test-centos @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -FROM centos:7 +FROM rockylinux:8 ARG DIR=github.com/apache/trafficcontrol VOLUME ["/junit"] @@ -19,13 +19,13 @@ VOLUME ["/junit"] WORKDIR /go/src/$DIR/traffic_router RUN set -o errexit; \ - yum -y update; \ - yum -y install \ + dnf -y update; \ + dnf -y install \ maven \ java-11-openjdk \ epel-release; \ - yum -y install tomcat-native; \ - yum -y clean all + dnf -y install tomcat-native; \ + dnf -y clean all ADD traffic_router /go/src/$DIR/traffic_router