marcc-hpc/octave:latest
$ singularity pull shub://marcc-hpc/octave:latest
Singularity Recipe
Bootstrap: docker
From: centos:latest
%environment
# use bash as default shell
SHELL=/bin/bash
export SHELL
%setup
# runs on host - the path to the image is $SINGULARITY_ROOTFS
%post
# MARCC mounts
mkdir /scratch /work-zfs /data
# post-setup script
yum -y install wget which # i like to download and know where things are
yum install -y epel-release
yum install -y octave octave-devel
OCTAVE_VERSION=`octave-cli --eval version|tail -1|cut -d\ -f3`
touch /usr/share/octave/$OCTAVE_VERSION/etc/built-in-docstrings
yum install -y git mercurial autoconf libtool flex unzip make
ompi=ompi
cd
git clone https://github.com/open-mpi/ompi.git $ompi
cd $ompi
./autogen.pl > ompi-install.log
./configure --prefix=/usr/local --enable-shared --enable-static >> ompi-install.log
make -j5 >> ompi-install.log
make install >> ompi-install.log
export LD_CUSTOM_PATH=/usr/local/lib:/usr/local/lib/openmpi
export LD_LIBRARY_PATH=$LD_CUSTOM_PATH:$LD_LIBRARY_PATH
export LD_RUN_PATH=$LD_CUSTOM_PATH:$LD_RUN_PATH
octavempi=octavempi
cd
hg clone http://hg.code.sf.net/p/octave/mpi $octavempi
cd $octavempi
hg archive ../mpi.zip
octave-cli --eval 'pkg install ../mpi.zip'
Collection
- Name: marcc-hpc/octave
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/marcc-hpc-octave-latest |
collection name | marcc-hpc/octave |
branch | v3.8.2-ompi_v4.0-gcc_v4.4 |
tag | latest |
commit | 6291bf1004f0d5ec172de66cb28b83fe621ba4cd |
version (container hash) | 36dfbeea21ab059921849529221c0d6a |
build date | 2020-03-12T20:16:15.400Z |
size (MB) | 1361 |
size (bytes) | 481173535 |
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.