From 70423f19596f92ed01c89e7d62f8c46a6dba6a23 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Mon, 27 Jan 2020 14:57:57 +0000 Subject: CentOS 8: Use upstream Ceph/master The only Ceph version that will support CentOS 8 is Octopus. It will be released end of March 2020 - so for now let's use master. Change-Id: I5955acb41e7346802d76f4f2b244cbf5c36f5bf2 Partially-Implements: blueprint centos-rhel-8 --- docker/base/Dockerfile.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docker/base/Dockerfile.j2') diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 5a62b1ef2..effb9fdca 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -231,6 +231,11 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 'centos-release-opstools', 'centos-release-qemu-ev', ] %} +# FIXME(mnasiadka): Replace with CentOS Storage SIG packages when avail +{% else %} +COPY ceph_master.repo /etc/yum.repos.d/ +RUN export CEPH_MASTER_REPO=$(curl -s https://shaman.ceph.com/api/search/\?status\=ready\&project\=ceph\&ref\=master\&flavor\=default\&distros\=centos/8\&sha1\=\latest | awk -F'{|: |,|"|}' '{for(i=1;i<=NF;i++) {gsub(" ",""); if($i == "url") {print $(i+2)}}}') \ + && sed -i "s|CHACRA_URL|${CEPH_MASTER_REPO}|g" /etc/yum.repos.d/ceph_master.repo {% endif %} {% if distro_package_manager == 'dnf' %} @@ -257,6 +262,14 @@ RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 'centos-nfs-ganesha28', 'centos-qemu-ev', ] %} +{% else %} + # FIXME(mgoddard): Remove when CentOS Storage SIG repo is available for CentOS 8 + {% set base_centos_yum_repos_to_disable = base_centos_yum_repos_to_disable + [ + 'ceph', + 'ceph-noarch', + 'ceph-el8', + 'ceph-lab-extras', + ] %} {% endif %} RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("centos_yum_repo_packages"), chain=True, clean=False) }} \ -- cgit v1.2.3