j-andrews7/singularity-rstudio:latest

$ singularity pull shub://j-andrews7/singularity-rstudio:latest

Singularity Recipe

BootStrap: shub
From: j-andrews7/singularity-r

%labels
  Maintainer Jared Andrews
  RStudio_Version 1.2.5033

%help
  This will run RStudio Server

%apprun rserver
  exec rserver "${@}"

%runscript
  exec rserver "${@}"

%environment
  export PATH=/usr/lib/rstudio-server/bin:${PATH}

%setup
  install -Dv \
    rstudio_auth.sh \
    ${SINGULARITY_ROOTFS}/usr/lib/rstudio-server/bin/rstudio_auth
  install -Dv \
    ldap_auth.py \
    ${SINGULARITY_ROOTFS}/usr/lib/rstudio-server/bin/ldap_auth

%post
  # Software versions
  export RSTUDIO_VERSION=1.2.5033

  # Install RStudio Server
  apt-get update
  apt-get install -y --no-install-recommends \
    ca-certificates \
    wget \
    gdebi-core \
    librsvg2-dev\
    libproj-dev
  wget \
    --no-verbose \
    -O rstudio-server.deb \
    "https://download2.rstudio.org/server/trusty/amd64/rstudio-server-${RSTUDIO_VERSION}-amd64.deb"
  gdebi -n rstudio-server.deb
  rm -f rstudio-server.deb

  # Add support for LDAP authentication
  wget \
    --no-verbose \
    -O get-pip.py \
    "https://bootstrap.pypa.io/get-pip.py"
  python3.8 get-pip.py
  rm -f get-pip.py
  python3.8 -m pip install ldap3
  python3.8 -m pip install numpy 
  python3.8 -m pip install MACS2

  # Disable session timeout
  echo "session-timeout-minutes=0" > /etc/rstudio/rsession.conf

  # Clean up
  rm -rf /var/lib/apt/lists/*

Collection


View on Datalad

Metrics

key value
id /containers/j-andrews7-singularity-rstudio-latest
collection name j-andrews7/singularity-rstudio
branch master
tag latest
commit d7c40e06c109c368c28843b2d91235b8797b7ef8
version (container hash) 02cee3b6962613fd6d26ccdbc6fc0c97
build date 2021-04-19T16:12:54.486Z
size (MB) 1602.0
size (bytes) 498253855
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.