diff --git a/build/os-packages/Dockerfile.centos7 b/build/os-packages/Dockerfile.centos7 index f7c3a9a22..b9504ee12 100644 --- a/build/os-packages/Dockerfile.centos7 +++ b/build/os-packages/Dockerfile.centos7 @@ -1,10 +1,12 @@ -FROM centos:7.9.2009 as os-centos7 +FROM oraclelinux:7.9 as os-centos7 ARG OS_VERSION=7 ARG BUILD_TOOLS="yum-utils createrepo epel-release wget" ARG PKGS_IN_ISO="selinux-policy-targeted policycoreutils-python iptables libcgroup libnetfilter_conntrack libseccomp libselinux-utils" RUN yum install -q -y ${BUILD_TOOLS} \ && yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo \ + && yum-config-manager --add-repo https://yum.oracle.com/public-yum-ol7.repo \ + && yum-config-manager --enable ol7_addons ol7_openstack30 \ && yum makecache \ && yum install -y ${PKGS_IN_ISO} diff --git a/build/os-packages/Dockerfile.redhat7 b/build/os-packages/Dockerfile.redhat7 index 671c2e664..6461954b0 100644 --- a/build/os-packages/Dockerfile.redhat7 +++ b/build/os-packages/Dockerfile.redhat7 @@ -1,9 +1,11 @@ -FROM centos:7.9.2009 as os-redhat7 +FROM oraclelinux:7.9 as os-redhat7 ARG OS_VERSION=7Server ARG BUILD_TOOLS="yum-utils createrepo epel-release wget" RUN yum install -q -y ${BUILD_TOOLS} \ && yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo \ + && yum-config-manager --add-repo https://yum.oracle.com/public-yum-ol7.repo \ + && yum-config-manager --enable ol7_addons ol7_openstack30 \ && yum makecache WORKDIR /redhat/$OS_VERSION/os