-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.myR_3-6-3
60 lines (50 loc) · 1.57 KB
/
Singularity.myR_3-6-3
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
55
56
57
58
59
60
Bootstrap: docker
From: rocker/tidyverse:3.6.3 #or: rocker/tidyverse:latest
%environment
R_VERSION=3.6.3
export R_VERSION
export PATH=$PATH
%labels
Author Sebastien Cunnac
Version v0.0.2
R_Version 3.6.3
build_date June 2020
R_bioconductor True
%post
apt-get update
# apt-get install -y apt-transport-https apt-utils software-properties-common
# add-apt-repository main
# add-apt-repository universe
# add-apt-repository multiverse
# General Utilities
apt-get install -y wget rsync git-lfs openssh-client build-essential libudunits2-dev gdal-bin libgdal-dev
# java-8
apt update
apt install -y apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
apt update
apt install -y adoptopenjdk-8-hotspot
# Specific libs for R packages to run
apt-get install -y texinfo texlive-latex-extra libmagick++-dev \
libcairo2-dev libxt-dev \
libglu1-mesa-dev libgmp-dev libmpfr-dev libv8-dev
# cleaning up
apt-get autoremove --purge --yes
apt-get clean
# installing packages from cran
install2.r --error \
--deps TRUE \
Cairo \
svglite \
nloptr \
rgl \
fs \
BiocManager
# installing Bioconductor
R --slave -e 'BiocManager::install(ask = FALSE)'
# Display versions
echo '############################################'
echo "## Build Date: $(date)"
echo "## R sessionInfo:\n"
R --slave -e 'sessionInfo()'