BootStrap: yum OSVersion: 7 MirrorURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/os/$basearch/ Include: yum # If you want the updates (available at the bootstrap date) to be installed # inside the container during the bootstrap instead of the General Availability # point release (7.x) then uncomment the following line #UpdateURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/updates/$basearch/ %runscript echo "This is what happens when you run the container..." %setup cp /ihome/crc/install/lmod/lmod/init/bash $SINGULARITY_ROOTFS/lmod.sh cp /ihome/crc/install/lmod/lmod/init/csh $SINGULARITY_ROOTFS/lmod.csh %post echo "Hello from inside the container" yum -y install vim-minimal yum -y install shadow-utils groupadd -g 16441 slurm useradd -m -c "Slurm workload manager" -d /var/lib/slurm -u 152622 -g slurm -s /bin/bash slurm groupadd -g 990 munge useradd -m -c "MUNGE Uid 'N' Gid Emporium" -d /var/lib/munge -u 993 -g munge -s /sbin/nologin munge cp lmod.sh /etc/profile.d cp lmod.sh /etc/profile.d yum -y install epel-release yum -y install lua-posix yum -y install lua-filesystem