Created
          August 6, 2015 05:29 
        
      - 
      
- 
        Save tjdett/6141c183a3f0307de930 to your computer and use it in GitHub Desktop. 
    Dockerfile which builds Octave EL7 RPMs from rawhide sources
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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