Skip to content
Snippets Groups Projects
Select Git revision
  • 48e5f8abe4da9c3e6cb2b7efe6558bc466b4ea09
  • master default protected
2 results

centos.def

Blame
  • centos.def 1.59 KiB
    Bootstrap: yum 
    OSVersion: 7
    MirrorURL: http://mirror.centos.org/centos-7/7/os/x86_64/
    Include: yum
    
    %labels
    
        APPLICATION_NAME centos
        APPLICATION_VERSION 7.7.1908
        APPLICATION_URL https://www.centos.org
    
        SINGULARITY_VERSION 2.6.1
        SINGULARITY_IMAGE_SIZE 4096
    
        AUTHOR_NAME Marty Kandes
        AUTHOR_EMAIL mkandes@sdsc.edu
    
        LAST_UPDATED 20200129
    
    %setup
    
    %environment
    
        # Set system locale
        export LC_ALL=C
    
        # Set default miniconda environment
        export PATH="/opt/miniconda3/bin:${PATH}"
    
    %post -c /bin/bash
    
        # Set system locale
        export LC_ALL=C
    
        # Add repositories
        yum -y install epel-release
    
        # Install system metapackages
        yum -y groupinstall "Development Tools"
        yum -y groupinstall "Additional Development"
        yum -y groupinstall "Compatibility Libraries"
    
        # Update all packages to their latest versions
        yum -y update
    
        # Install common packages
        yum -y install bc
        yum -y install cmake
        yum -y install curl
        yum -y install mlocate
        yum -y install rsync
        yum -y install time
        yum -y install wget
        yum -y install which
    
        # Install expect to automate responses for interactive build questions
        yum -y install expect
    
        # Use /tmp to store temporary files within the container during the
        # bootstraping process
        cd /tmp
    
        # Install miniconda3
        wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
        chmod +x Miniconda3-latest-Linux-x86_64.sh
        ./Miniconda3-latest-Linux-x86_64.sh -b -p /opt/miniconda3
        
        # Update database for mlocate
        updatedb
    
    %files
    
    %runscript
    
    %test