Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Commit 64ba9d2

Browse files
Merge pull request #199 from black-dragon74/centos-yum-to-dnf
[centos] Switch from yum to dnf
2 parents bac6773 + 7742069 commit 64ba9d2

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

CentOS/Dockerfile

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LABEL architecture="$ARCH" \
1515
description="Gluster Image is based on CentOS Image which is a scalable network filesystem. Using common off-the-shelf hardware, you can create large, distributed storage solutions for media streaming, data analysis, and other data- and bandwidth-intensive tasks." \
1616
io.openshift.tags="gluster,glusterfs,glusterfs-centos"
1717

18-
RUN yum --setopt=tsflags=nodocs -y update && yum install -y centos-release-gluster && \
18+
RUN dnf --nodocs -y update && dnf --nodocs -y install centos-release-gluster && \
1919
(cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) && \
2020
rm -f /lib/systemd/system/multi-user.target.wants/* &&\
2121
rm -f /etc/systemd/system/*.wants/* &&\
@@ -24,21 +24,21 @@ rm -f /lib/systemd/system/sockets.target.wants/*udev* && \
2424
rm -f /lib/systemd/system/sockets.target.wants/*initctl* && \
2525
rm -f /lib/systemd/system/basic.target.wants/* &&\
2626
rm -f /lib/systemd/system/anaconda.target.wants/* &&\
27-
yum --setopt=tsflags=nodocs -y install nfs-utils && \
28-
yum --setopt=tsflags=nodocs -y install attr && \
29-
yum --setopt=tsflags=nodocs -y install iputils && \
30-
yum --setopt=tsflags=nodocs -y install iproute && \
31-
yum --setopt=tsflags=nodocs -y install openssh-server && \
32-
yum --setopt=tsflags=nodocs -y install openssh-clients && \
33-
yum --setopt=tsflags=nodocs -y install rsync && \
34-
yum --setopt=tsflags=nodocs -y install tar && \
35-
yum --setopt=tsflags=nodocs -y install cronie && \
36-
yum --setopt=tsflags=nodocs -y install xfsprogs && \
37-
yum --setopt=tsflags=nodocs -y install glusterfs && \
38-
yum --setopt=tsflags=nodocs -y install glusterfs-server && \
39-
yum --setopt=tsflags=nodocs -y install glusterfs-rdma && \
40-
yum --setopt=tsflags=nodocs -y install gluster-block && \
41-
yum --setopt=tsflags=nodocs -y install glusterfs-geo-replication && yum clean all && \
27+
dnf --nodocs -y install nfs-utils && \
28+
dnf --nodocs -y install attr && \
29+
dnf --nodocs -y install iputils && \
30+
dnf --nodocs -y install iproute && \
31+
dnf --nodocs -y install openssh-server && \
32+
dnf --nodocs -y install openssh-clients && \
33+
dnf --nodocs -y install rsync && \
34+
dnf --nodocs -y install tar && \
35+
dnf --nodocs -y install cronie && \
36+
dnf --nodocs -y install xfsprogs && \
37+
dnf --nodocs -y install glusterfs && \
38+
dnf --nodocs -y install glusterfs-server && \
39+
dnf --nodocs -y install glusterfs-rdma && \
40+
dnf --nodocs -y install gluster-block && \
41+
dnf --nodocs -y install glusterfs-geo-replication && dnf clean all && \
4242
sed -i '/Port 22/c\Port 2222' /etc/ssh/sshd_config && \
4343
sed -i 's/Requires\=rpcbind\.service//g' /usr/lib/systemd/system/glusterd.service && \
4444
sed -i 's/rpcbind\.service/gluster-setup\.service/g' /usr/lib/systemd/system/glusterd.service && \

0 commit comments

Comments
 (0)