gluster / gluster-containers

Dockerfiles (CentOS, Fedora, Red Hat) for GlusterFS
https://github.com/gluster/gluster-containers/pkgs/container/gluster-containers
223 stars 135 forks source link

Building with docker build -t gluster-centos CentOS command does not work due to missing dependencies #201

Open networkingana opened 1 year ago

networkingana commented 1 year ago

I cannot successfully build with docker build -t gluster-centos CentOS

Installed:
  glusterfs-11.0-1.el9s.x86_64          gperftools-libs-2.9.1-1.el9s.x86_64
  libgfrpc0-11.0-1.el9s.x86_64          libgfxdr0-11.0-1.el9s.x86_64
  libglusterfs0-11.0-1.el9s.x86_64      libunwind-1.5.0-1.el9s.x86_64

Complete!
Last metadata expiration check: 0:00:24 ago on Tue Feb 28 12:31:50 2023.
Error:
 Problem: cannot install the best candidate for the job
  - nothing provides python3-pyxattr needed by glusterfs-server-11.0-1.el9s.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
The command '/bin/sh -c dnf --nodocs -y update && dnf --nodocs -y install centos-release-gluster && (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done) && rm -f /lib/systemd/system/multi-user.target.wants/* &&rm -f /etc/systemd/system/*.wants/* &&rm -f /lib/systemd/system/local-fs.target.wants/* && rm -f /lib/systemd/system/sockets.target.wants/*udev* && rm -f /lib/systemd/system/sockets.target.wants/*initctl* && rm -f /lib/systemd/system/basic.target.wants/* &&rm -f /lib/systemd/system/anaconda.target.wants/* &&dnf --nodocs -y install nfs-utils && dnf --nodocs -y install attr  && dnf --nodocs -y install iputils  && dnf --nodocs -y install iproute  && dnf --nodocs -y install openssh-server  && dnf --nodocs -y install openssh-clients  && dnf --nodocs -y install rsync  && dnf --nodocs -y install tar  && dnf --nodocs -y install cronie  && dnf --nodocs -y install xfsprogs  && dnf --nodocs -y install glusterfs  && dnf --nodocs -y install glusterfs-server  && dnf --nodocs -y install glusterfs-rdma  && dnf --nodocs -y install gluster-block  && dnf --nodocs -y install glusterfs-geo-replication && dnf clean all && sed -i '/Port 22/c\Port 2222' /etc/ssh/sshd_config && sed -i 's/Requires\=rpcbind\.service//g' /usr/lib/systemd/system/glusterd.service && sed -i 's/rpcbind\.service/gluster-setup\.service/g' /usr/lib/systemd/system/glusterd.service && sed -i 's/rpcbind\.service//g' /usr/lib/systemd/system/gluster-blockd.service && mkdir -p /etc/glusterfs_bkp /var/lib/glusterd_bkp /var/log/glusterfs_bkp &&cp -r /etc/glusterfs/* /etc/glusterfs_bkp &&cp -r /var/lib/glusterd/* /var/lib/glusterd_bkp &&cp -r /var/log/glusterfs/* /var/log/glusterfs_bkp && mkdir -p /var/log/core;' returned a non-zero code: 1

Error: Problem: cannot install the best candidate for the job

DavidMiserak commented 1 year ago

I have to add dnf --nodocs -y install python3-pyxattr --enablerepo=crb[0] to the Dockerfile to get this to work.

[0] https://centos.pkgs.org/9-stream/centos-crb-x86_64/python3-pyxattr-0.7.2-4.el9.x86_64.rpm.html

vanzhiganov commented 10 months ago

Enable CRB repo

dnf config-manager --enable crb