outbackCrustacian/python_singularity_recipes:massfile
$ singularity pull shub://outbackCrustacian/python_singularity_recipes:massfile
Singularity Recipe
Bootstrap: shub
From: outbackCrustacian/python_singularity_recipes:python
%setup
#make directory for files to be created to
mkdir ${SINGULARITY_ROOTFS}/files
cp create_files.py ${SINGULARITY_ROOTFS}/
#coppy time test into the root directory for use
#to run do aprun -n 1 -N 1 singularity run python3 /time_test.py
cp time_test.py ${SINGULARITY_ROOTFS}/
chmod +x time_test.py
%post
yes | yum install vim-X11 vim-common vim-enhanced vim-minimal
#Set correct path for mpich
export PATH=$PATH:/mpich/install/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mpich/install/lib
env | sort
find / -name libmpi.so.12
python3 hello.py
#install pip
curl https://bootstrap.pypa.io/get-pip.py | python
ls
cd usr/bin/
echo SWITCHING NOW
ls
#pip3 install mpi4py
env MPICC=/mpich/install/bin/mpicc pip3 install mpi4py
cd /
#create 1k 1kb files
ulimit -n 2048
cd /files/
ulimit -n 2048
/mpich/install/bin/mpiexec -np 99 python3 /create_files.py
ls
cd ..
%runscript
/time_test.py
Collection
- Name: outbackCrustacian/python_singularity_recipes
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/outbackCrustacian-python_singularity_recipes-massfile |
collection name | outbackCrustacian/python_singularity_recipes |
branch | master |
tag | massfile |
commit | da5d1bc6469c13615eb0319f9dec289a62315c7b |
version (container hash) | 36080d6d1d8a8a8336f69e26f0cf7c8d |
build date | 2018-08-02T20:49:37.968Z |
size (MB) | 1286 |
size (bytes) | 347824159 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.