Skip to content

Commit

Permalink
remove centos 8
Browse files Browse the repository at this point in the history
centos8 is failing contionusly to pull and install its repos so this is
an attempt to remove it completely and see if it passes

Signed-off-by: Nizamudeen A <[email protected]>
  • Loading branch information
nizamial09 committed Jun 16, 2024
1 parent 087ec20 commit 072ebd9
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
os: [centos_stream8, centos_stream9]
os: [centos_stream9]
include:
- os: centos_stream8
centos_version: 8
- os: centos_stream9
centos_version: 9
steps:
Expand Down Expand Up @@ -57,13 +55,11 @@ jobs:
branch: [main, reef, quincy, pacific]
name: [ceph, ceph-rpm]
include:
- centos_version: 8
- centos_version: 9
- name: ceph
dir: ceph
- name: ceph-rpm
dir: ceph/rpm
- branch: main
centos_version: 9
steps:
- name: Checkout
uses: actions/checkout@master
Expand Down
4 changes: 2 additions & 2 deletions docker/ceph/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ARG CENTOS_VERSION=8
ARG CENTOS_VERSION=9
FROM rhcsdashboard/ceph-base:centos_stream${CENTOS_VERSION}
ARG CENTOS_VERSION

# Required in order for build-doc to run successfully:
RUN pip3 install -U Cython==0.29.3
RUN pip3 install -U Cython

RUN dnf install -y bc ccache systemd-udev \
&& dnf clean packages
Expand Down
18 changes: 8 additions & 10 deletions docker/ceph/centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
ARG CENTOS_VERSION=8
ARG CENTOS_VERSION=9
FROM quay.io/centos/centos:stream$CENTOS_VERSION as ceph-base
ARG CENTOS_VERSION

RUN dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y
RUN dnf distro-sync -y

RUN dnf install -y epel-release \
&& dnf clean packages
RUN dnf install -y bind-utils curl dnf dnf-plugins-core git golang-github-prometheus hostname \
RUN dnf install -y bind-utils dnf dnf-plugins-core git golang-github-prometheus hostname \
iproute iputils jq jsonnet lsof net-tools procps-ng \
python3-jinja2 python3-jsonpatch python3-pip util-linux which \
&& dnf clean packages

RUN dnf config-manager --set-enabled crb
RUN dnf distro-sync -y

RUN sed -i 's/gpgcheck=1/gpgcheck=0/' /etc/dnf/dnf.conf
RUN sed -i 's/skip_if_unavailable=False/skip_if_unavailable=True/' /etc/dnf/dnf.conf

RUN dnf config-manager --set-enabled powertools

RUN pip3 install -U pip

# Sanity checks:
Expand Down Expand Up @@ -51,15 +49,15 @@ RUN dnf install -y ant doxygen libxslt-devel libxml2-devel graphviz python3-deve
&& dnf clean packages

# For dev. mode: run backend unit tests.
RUN dnf install -y libtool-ltdl-devel libxml2-devel python36-devel xmlsec1-devel xmlsec1-openssl-devel \
RUN dnf install -y libtool-ltdl-devel libxml2-devel xmlsec1-devel xmlsec1-openssl-devel \
&& dnf clean packages

# SSO (after installing xmlsec deps).
RUN pip3 install python3-saml==1.9.0

# NFS Ganesha.
RUN dnf install -y centos-release-nfs-ganesha30 \
&& dnf install -y nfs-ganesha-ceph nfs-ganesha-rados-grace nfs-ganesha-rados-urls \
RUN dnf install -y centos-release-nfs-ganesha5 centos-release-ceph-reef \
&& dnf install -y libcephfs2 nfs-ganesha-ceph nfs-ganesha-rados-grace nfs-ganesha-rados-urls \
&& dnf clean packages

# S3 benchmark:
Expand Down
5 changes: 3 additions & 2 deletions docker/ceph/e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ARG CENTOS_VERSION=8
ARG CENTOS_VERSION=9
FROM quay.io/centos/centos:stream$CENTOS_VERSION

RUN dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y
RUN dnf install -y bind-utils dnf dnf-plugins-core
RUN dnf config-manager --set-enabled crb
RUN dnf distro-sync -y

RUN dnf install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm \
Expand Down
4 changes: 2 additions & 2 deletions docker/ceph/rpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ARG CENTOS_VERSION=8
ARG CENTOS_VERSION=9
FROM rhcsdashboard/ceph-base:centos_stream${CENTOS_VERSION}
ARG CENTOS_VERSION

# Sepia provide missing dependencies until epel provide all dependencies.
RUN dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/${CENTOS_VERSION}/
RUN dnf config-manager --setopt gpgcheck=0 apt-mirror.front.sepia.ceph.com_lab-extras_${CENTOS_VERSION}_ --save
RUN dnf copr enable -y ktdreyer/ceph-el${CENTOS_VERSION}
RUN dnf copr enable -y ceph/el${CENTOS_VERSION}

ARG USE_REPO_FILES=0
ARG REPO_URL
Expand Down

0 comments on commit 072ebd9

Please sign in to comment.