use centos8 for collectd

Change-Id: Ida4939fd573df09f3b799e3ee5655976e7ec1bf7
This commit is contained in:
Asma Syed Hameed 2021-11-19 17:20:38 +05:30
parent 9a00692cfa
commit 3cd7ecc138
3 changed files with 28 additions and 27 deletions

View File

@ -1,10 +1,10 @@
FROM registry.centos.org/centos:7 FROM registry.centos.org/centos:8
RUN yum update -y && \ RUN dnf update -y && \
yum clean all && \ dnf clean all && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum install -y centos-release-opstools && \ dnf install -y centos-release-opstools && \
yum install -y collectd collectd-turbostat collectd-disk dnf install -y collectd collectd-turbostat collectd-disk
ADD config/collectd.conf /etc/collectd.conf ADD config/collectd.conf /etc/collectd.conf

View File

@ -1,10 +1,10 @@
FROM registry.centos.org/centos:7 FROM registry.centos.org/centos:8
RUN yum update -y && \ RUN dnf update -y && \
yum clean all && \ dnf clean all && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum install -y centos-release-opstools && \ dnf install -y centos-release-opstools && \
yum install -y collectd dnf install -y collectd
ADD config/collectd.conf /etc/collectd.conf ADD config/collectd.conf /etc/collectd.conf

View File

@ -1,20 +1,21 @@
FROM registry.centos.org/centos:7 FROM registry.centos.org/centos:8
RUN yum update -y && \ RUN dnf clean all && \
yum clean all && \ dnf group install -y "Development Tools" && \
yum groupinstall -y development tools && \ dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \ dnf install -y centos-release-opstools && \
yum install -y centos-release-opstools && \ dnf install -y collectd collectd-turbostat collectd-disk collectd-apache collectd-ceph \
yum install -y collectd collectd-turbostat collectd-disk collectd-apache collectd-ceph \
collectd-mysql collectd-python collectd-ping && \ collectd-mysql collectd-python collectd-ping && \
yum install -y sysstat && \ dnf install -y sysstat && \
yum install -y python2-pip python2-devel && \ dnf install -y python3-pip python3-devel && \
pip install --upgrade 'pip<20' && \ pip3 install --upgrade pip && \
pip install pyrabbit && \ pip3 install pyrabbit && \
yum install -y libdbi-dbd-mysql collectd-dbi && \ dnf install -y libdbi-dbd-mysql collectd-dbi && \
yum install -y https://cbs.centos.org/kojifiles/packages/openvswitch/2.11.0/4.el7/x86_64/openvswitch-2.11.0-4.el7.x86_64.rpm && \ dnf install -y centos-release-openstack-train && \
yum install -y libibverbs && \ dnf install -y openvswitch libibverbs && \
yum install -y sudo dnf install -y passwd && \
dnf install -y ceph-common && \
dnf install -y sudo
RUN useradd stack RUN useradd stack
RUN echo stack | passwd stack --stdin RUN echo stack | passwd stack --stdin