I'm opening an issue as it is up for discussion - should we have the Make process part of the Dockerfile?
Here's an example of the Dockerfile I've modified (inc. other modifications):
FROM centos:8
LABEL project="centos8-gluster-build"
LABEL maintainer "gluster-users@gluster.org"
RUN yum -y install --setopt tsflags=nodocs --enablerepo=powertools automake autoconf libtool flex bison \
openssl-devel libxml2-devel libaio-devel \
readline-devel glib2-devel userspace-rcu-devel \
libacl-devel fuse-devel redhat-rpm-config rpcgen libtirpc-devel \
make python3-devel rsync libuuid-devel rpm-build \
git attr libcurl-devel selinux-policy-devel firewalld liburing-devel rpcgen && yum clean all
RUN yum -y update --setopt tsflags=nodocs && yum clean all && rm -rf /var/cache/yum
#RUN yum -y install --setopt tsflags=nodocsI epel-release
#RUN yum -y install --setopt tsflags=nodocs --enablerepo=powertools rpcgen
#RUN yum clean all && rm -rf /var/cache/yum
CMD ["/usr/sbin/init"]
RUN git clone --depth 1 https://github.com/gluster/glusterfs.git
WORKDIR glusterfs
RUN ./autogen.sh
RUN ./configure
WORKDIR extras/LinuxRPM
RUN make glusterrpms
I'm opening an issue as it is up for discussion - should we have the Make process part of the Dockerfile?
Here's an example of the Dockerfile I've modified (inc. other modifications):