Skip to content

Instantly share code, notes, and snippets.

@tjdett
Created August 6, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjdett/6141c183a3f0307de930 to your computer and use it in GitHub Desktop.
Save tjdett/6141c183a3f0307de930 to your computer and use it in GitHub Desktop.
Dockerfile which builds Octave EL7 RPMs from rawhide sources
FROM centos:7
RUN yum update -y && \
yum install -y rpm-build yum-utils && \
yum clean all
RUN RAWHIDE_BASE="https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/source/SRPMS/o/" && \
RPM_FILE=$(curl -s "$RAWHIDE_BASE" | grep -Po 'octave-[0-9\.\-]+\.fc[0-9]+\.src\.rpm' | head -1) && \
rpm -Uvh ${RAWHIDE_BASE}${RPM_FILE}
RUN yum install -y epel-release && \
yum-builddep -y /root/rpmbuild/SPECS/octave.spec && \
yum clean all
RUN rpm --rebuilddb && yum install make automake gcc gcc-c++ -y && \
yum clean all
RUN rpmbuild -ba /root/rpmbuild/SPECS/octave.spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment