github.com/whamcloud/lemur@v0.0.0-20190827193804-4655df8a52af/packaging/docker/lemur-rpm-build/Dockerfile (about) 1 FROM lustre-client:latest 2 MAINTAINER Michael MacDonald <michael.macdonald@intel.com> 3 4 RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 5 6 RUN yum install -y sudo yum-utils 7 8 RUN sed -i -e "s/^\(Defaults\s\+requiretty.*\)/#\1/" /etc/sudoers 9 10 ADD ./lemur.spec /tmp/lemur.spec 11 12 # prep the image with some build deps, but this will be run again 13 # for the actual build to catch any changes since the image was built 14 RUN yum-builddep -y /tmp/lemur.spec && rm /tmp/lemur.spec 15 16 VOLUME ["/source", "/root/rpmbuild"] 17 CMD make -C /source local-rpm