ivana-m/singularity_image_recipes:dvs6_py36_mpi33
$ singularity pull shub://ivana-m/singularity_image_recipes:dvs6_py36_mpi33
Singularity Recipe
Bootstrap: shub
From: jtchilders/singularity_image_recipes:dvs6_py36
%setup
# copy test script to container
mkdir $SINGULARITY_ROOTFS/myapp
cp example_codes/pi.py $SINGULARITY_ROOTFS/myapp
%post
yum install -y wget
echo setting up devtoolset6
# setup devtoolset6
scl enable devtoolset-6 bash
MPICH_VERSION=3.3
echo installing mpich $MPICH_VERSION
mkdir /mpich
cd /mpich
wget http://www.mpich.org/static/downloads/$MPICH_VERSION/mpich-$MPICH_VERSION.tar.gz
tar xf mpich-$MPICH_VERSION.tar.gz --strip-components=1
./configure --prefix=/mpich/install --disable-wrapper-rpath
make -j 4 install
# add mpich to environment
export PATH=$PATH:/mpich/install/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mpich/install/lib
# install mpi4py
pip3.6 install mpi4py
%runscript
python3.6 /myapp/pi.py
Collection
- Name: ivana-m/singularity_image_recipes
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/ivana-m-singularity_image_recipes-dvs6_py36_mpi33 |
collection name | ivana-m/singularity_image_recipes |
branch | master |
tag | dvs6_py36_mpi33 |
commit | a375cb8ec77799394eb2450cd3f4f82c65f4dd49 |
version (container hash) | ca2f67c816e4025510e604a93cead872 |
build date | 2019-04-10T18:24:19.201Z |
size (MB) | 1302 |
size (bytes) | 396574751 |
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.