MPIB/singularity-r:2.15.3
$ singularity pull shub://MPIB/singularity-r:2.15.3
Singularity Recipe
Bootstrap: docker
FROM: debian:9.3-slim
# Debian Stretch without manpages and other files
# usually not needed in containers.
%help
Contains R version 2.15.3.
%post
# Packages needed inside the container.
export CONTAINER_SOFTWARE="gfortran g++ gcc make libcurl3-gnutls"
## Set build variables.
# Packages needed only for the build process.
export BUILD_SOFTWARE="wget libcurl4-gnutls-dev"
# Needed for downloading source.
export R_BASE_URI="https://cran.r-project.org/src/base/R-2/"
export R_FOLDER_NAME="R-2.15.3"
export R_PACKAGE_NAME="${R_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 R Package
wget ${R_BASE_URI}${R_PACKAGE_NAME}
tar -xf $R_PACKAGE_NAME
# Build R
cd $R_FOLDER_NAME
./configure --with-readline=no --with-x=no
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 R?
R --version
Collection
- Name: MPIB/singularity-r
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/MPIB-singularity-r-2.15.3 |
collection name | MPIB/singularity-r |
branch | master |
tag | 2.15.3 |
commit | f78d0c24151ce07b84b9a489a2364efb0eacff52 |
version (container hash) | a989dacb0465ea14e3e29628c18b7348 |
build date | 2018-08-23T18:25:58.004Z |
size (MB) | 579 |
size (bytes) | 189870111 |
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.