-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.r3.6.3_banocc
54 lines (43 loc) · 1.63 KB
/
Singularity.r3.6.3_banocc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
BootStrap: shub
From: Xentrics/jupyter-r-base:r3.6.3
%labels
Maintainer Bastian Seelbinder
R_Version 3.6.3
%apprun R
exec R "${@}"
%apprun Rscript
exec Rscript "${@}"
%runscript
exec R "${@}"
%post
# set mount points
mkdir -p /scratch/global /scratch/local
# Install dependencies
apt-get update
apt-get -y install \
wget \
build-essential \
software-properties-common \
apt-transport-https \
locales \
libxml2-dev \
libssl-dev \
libcurl4-openssl-dev \
libopenblas-dev r-base-core libfontconfig1-dev libcairo2-dev \
openssh-client openssh-server libssh-dev wget vim git gfortran autoconf pandoc qpdf libssh2-1-dev
# Update locales
DEBIAN_FRONTEND=noninteractive apt-get install tzdata
echo "LC_ALL=en_US.UTF-8" >> /etc/environment
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen en_US.UTF-8
# to solve the "locale.Error: unsupported locale setting" error [https://stackoverflow.com/questions/14547631/python-locale-error-unsupported-locale-setting ]
export LC_ALL=C
# cleanup
apt-get clean
rm -rf /var/lib/apt/lists/*
echo "options(repos = c(CRAN = 'https://cloud.r-project.org/'), download.file.method = 'libcurl')" >> /usr/lib/R/etc/Rprofile.site
# Install BanoCC
export R_LIBS_USER="/usr/local/lib/R/site-library" # make sure packages go here
R --vanilla -e 'install.packages("BiocManager", repos="https://cloud.r-project.org")'
R --vanilla -e 'BiocManager::install(c("tidyverse", "magrittr", "readxl", "writexl"))'