MPIB/singularity-jags:latest

$ singularity pull shub://MPIB/singularity-jags:latest

Singularity Recipe

Bootstrap: docker
FROM: debian:stable-slim

%help

Contains JAGS version 4.3.0

%post

apt-get update

# Packages needed inside the container.
export CONTAINER_SOFTWARE="gcc g++ gfortran make libcurl3-gnutls libopenblas-base"
## Set build variables.
# Packages needed only for the build process.
export BUILD_SOFTWARE="curl libblas-dev liblapack-dev"
# Needed for downloading source.
export JAGS_VERSION=4.3.0
export JAGS_BASE_URI="https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Source/"
export JAGS_FOLDER_NAME="JAGS-$JAGS_VERSION"
export JAGS_PACKAGE_NAME="${JAGS_FOLDER_NAME}.tar.gz"
# Set paths to facilitate the build process.
export BUILDHOME="/tmp"

# Install build and run requirements.
apt-get update
apt-get install $BUILD_SOFTWARE $CONTAINER_SOFTWARE -y

# Get JAGS source package
curl -L -o "$JAGS_PACKAGE_NAME" ${JAGS_BASE_URI}${JAGS_PACKAGE_NAME}"/download#"
tar -xf "$JAGS_PACKAGE_NAME"

# Build JAGS
cd "$JAGS_FOLDER_NAME"
./configure
make
make install

# Removing installation overhead.

cd
rm -rf /tmp/*
apt-get purge $BUILD_SOFTWARE -y
apt-get autoclean -y
apt-get autoremove -y
rm -rf /var/lib/apt/lists/*

%test

# Can we call JAGS?
echo exit | jags

Collection


View on Datalad

Metrics

key value
id /containers/MPIB-singularity-jags-latest
collection name MPIB/singularity-jags
branch master
tag latest
commit 028b096dff29865e50c0f495e13633922622ce61
version (container hash) 2e9d717db32786c7ead150259291bc41
build date 2020-01-27T10:41:27.737Z
size (MB) 569
size (bytes) 161103903
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.