-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embed the make process into the Dockerfile #2
Comments
Optimized Dockerfile and startscript as below. We need to pull the already built docker image from quay and run only the daily build to generate rpms, that way it looks optimised from my point of view. ===============================Dockerfile============================== LABEL project="centos8-gluster-build" RUN yum -y --setopt tsflags=nodocs --enablerepo=powertools install automake autoconf libtool flex bison RUN dnf -y install epel-release --setopt tsflags=nodocs RUN yum -y update --setopt tsflags=nodocs RUN yum clean all CMD ["/usr/sbin/init"] COPY ./startscript.sh / RUN chmod +x /startscript.sh CMD /startscript.sh =====================startscript=================== git clone --depth 1 https://github.com/gluster/glusterfs.git |
I think combining the update and the cleanup is useful to reduce layering: |
I don't think you need libcmocka-devel perl-Test-Harness |
Noted, will update the changes into the file.. |
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):
The text was updated successfully, but these errors were encountered: