astror/astror:latest
Version sha256.5164a7a7acad8cf7ee979050482e105a09a7393e736432891d8fbab6a27345ac
Image size: 1.0 GB
For more on pulling from the registry, see the ilifu documentation.
First, once: add the registry and make it your default
singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
singularity remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
singularity pull library://astror/astror:latest
Shell into the container
singularity shell library://astror/astror:latest
Run the container
singularity run library://astror/astror:latest
First, once: add the registry and make it your default
apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
apptainer remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
apptainer pull library://astror/astror:latest
Shell into the container
apptainer shell library://astror/astror:latest
Run the container
apptainer run library://astror/astror:latest
R version 4.4.1 container with ProFound and common R packages
Bootstrap: debootstrap
MirrorURL: http://archive.ubuntu.com/ubuntu/
OSVersion: jammy
%labels
APPLICATION_NAME Ubuntu LTS + R
OS_VERSION 20.04
APPLICATION_URL https://www.atnf.csiro.au/vlbi/dokuwiki/doku.php/difx/installation
SYSTEM_NAME iLifu
SYSTEM_SINGULARITY_VERSION 4.1.3
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME IDIA
AUTHOR_EMAIL support@ilifu.ac.zaR_Version 4.4.1
%help
R version 4.4.1 container with ProFound and common R packages
%post
# Create Installation Directories and export paths. This is needed as part of post.
# %environment scriptlet does not define these paths during %post, only after.
export R_VERSION=4.4.1
export RSTUDIO_VERSION=2023.06.1-524
export DEBIAN_FRONTEND=noninteractive
# Install utility packages
# Update apt
apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y
apt-get install -y software-properties-common
apt-get install -y \
apt-utils \
build-essential \
dirmngr \
bzip2 \
git \
pkg-config \
vim \
lsb-release\
wget
# Add R repositories
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
apt-add-repository universe
# Add repositories for libs and latest R version
#wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
#add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
#apt-add-repository universe
#apt-get update -y
apt update
# Install R and library dependencies
# apt-get install -y \
apt-get install -y --no-install-recommends \
libxrender-dev \
zlib1g-dev \
libx11-dev \
libxt-dev \
libgit2-dev \
libfftw3-dev \
libtiff5-dev \
libssl-dev \
libxml2-dev \
libcairo2-dev \
r-base=${R_VERSION}* \
r-base-core=${R_VERSION}* \
r-base-dev=${R_VERSION}* \
r-recommended=${R_VERSION}* \
# Add a default CRAN mirror
echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')" >> /usr/lib/R/etc/Rprofile.site
# Add a directory for host R libraries
mkdir -p /library
echo "R_LIBS_SITE=/library:\${R_LIBS_SITE}" >> /usr/lib/R/etc/Renviron.site
# Install R packages
Rscript -e 'install.packages(
c(
"data.table",
"devtools",
"DBI",
"mgcv",
"nlme",
"pacman",
"rmarkdown",
"Rcpp",
"shiny",
"tidyverse",
"xtable",
"IRkernel",
"dplyr",
"ggplot2",
"tidyr",
"caret",
"nnet"
))'
Rscript -e 'install.packages(
c(
"astro",
"astrodatR",
"mice",
"nnet",
"party",
"magicaxis",
"FITSio",
"knitr",
"akima",
"LaplacesDemon",
"ProFit",
"lambda.r",
"remotes",
"BiocManager",
"EBImage",
"fftwtools",
"imager",
"Cairo"
))'
Rscript -e 'library("remotes"); remotes::install_github("asgr/Rfits")'
Rscript -e 'library("remotes"); remotes::install_github("asgr/ProFound")'
Rscript -e 'library("remotes"); remotes::install_github("asgr/ProSpectData")'
Rscript -e 'library("remotes"); remotes::install_github("asgr/ProSpect")'
Rscript -e 'library("remotes"); remotes::install_github("asgr/Rwcs")'
Rscript -e 'library("remotes"); remotes::install_github("asgr/ProPane")'
Rscript -e 'library("remotes"); remotes::install_github("asgr/Highlander")'
# Fix command prompt in Singularity 3+
printf 'export PS1="\u@$SINGULARITY_NAME:\w$ "' > /.singularity.d/env/999-psvars.sh
# Cleanup the container
apt-get clean
apt-get autoclean
%runscript
exec /usr/bin/R "$@"
%test
R_VERSION=4.4.1
R --version | grep -q "${R_VERSION}"
Download astror-astror_latest.def
#!/bin/sh
exec /usr/bin/R "$@"
#!/bin/sh
R_VERSION=4.4.1
R --version | grep -q "${R_VERSION}"