alejandrox1/singularity-test:latest

$ singularity pull shub://alejandrox1/singularity-test:latest

Singularity Recipe

Bootstrap: docker
From: ubuntu:18.04

%labels
    AUTHOR alarcj137@gmail.com
    VERSION v1.0

%help
    Singularity test - running a containarized MPI executable.

%files
    ./mpi_hello_world.c
    ./Makefile

%post
    mkdir -p /tmp/git
    cd /tmp/git
    apt-get update -y && apt-get install -y git build-essential autoconf libtool-bin flex
    [ -d ompi ] && rm -rf ompi
    git clone https://github.com/open-mpi/ompi.git
    cd ompi
    ./autogen.pl
    ./configure --prefix=/usr/local
    make -j 10
    make install
    ldconfig

    /usr/local/bin/mpicc examples/ring_c.c -o /usr/bin/mpi_ring

%test
    /usr/local/bin/mpirun --allow-run-as-root /usr/bin/mpi_ring

%environment
    # export PATH="$PATH:$PWD"

%runscript
    cat /etc/*release
    cd src/
    make
    cd ../
    cp src/mpi_hello_world /usr/bin/
    exec /usr/local/bin/mpirun --version

Collection


View on Datalad

Metrics

key value
id /containers/alejandrox1-singularity-test-latest
collection name alejandrox1/singularity-test
branch master
tag latest
commit ba084cbed20c18448ee088a4e983b2a702b4b4ee
version (container hash) 54533242296bd3cc5669af585906ac8b
build date 2018-06-05T07:53:14.364Z
size (MB) 874
size (bytes) 146878495
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.