github.com/apptainer/singularity@v3.1.1+incompatible/examples/legacy/2.2/centos.def (about) 1 # Copyright (c) 2015-2017, Gregory M. Kurtzer. All rights reserved. 2 # 3 # "Singularity" Copyright (c) 2016, The Regents of the University of California, 4 # through Lawrence Berkeley National Laboratory (subject to receipt of any 5 # required approvals from the U.S. Dept. of Energy). All rights reserved. 6 7 8 BootStrap: yum 9 OSVersion: 7 10 MirrorURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/os/$basearch/ 11 Include: yum 12 13 # If you want the updates (available at the bootstrap date) to be installed 14 # inside the container during the bootstrap instead of the General Availability 15 # point release (7.x) then uncomment the following line 16 #UpdateURL: http://mirror.centos.org/centos-%{OSVERSION}/%{OSVERSION}/updates/$basearch/ 17 18 19 %runscript 20 echo "This is what happens when you run the container..." 21 22 23 %post 24 echo "Hello from inside the container" 25 yum -y install vim-minimal 26 27