-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.3.4.4
61 lines (49 loc) · 1.17 KB
/
Singularity.3.4.4
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
61
Bootstrap: docker
FROM: r-base:3.4.4
%help
RStudio Desktop version 1.1.442
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Usage:
$ singularity run rstudio.3.4.4.simg [args]
$ singularity run --app R rstudio.3.4.4.simg [args]
$ singularity run --app Rscript rstudio.3.4.4.simg [args]
$ singularity run --app rstudio rstudio.3.4.4.simg
%setup
%files
%labels
Maintainer Michael J. Stealey
Maintainer_Email [email protected]
RStudio_Version 1.1.442
R_Version 3.4.4
%environment
RSTUDIO_VERSION=1.1.442
R_BASE_VERSION=3.4.4
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
%post
export RSTUDIO_VERSION=1.1.442
apt-get update
apt-get install -y \
wget \
gdebi-core \
libxslt1-dev \
qt5-default \
mesa-utils \
libgl1-mesa-glx \
libgl1-mesa-dev
wget \
--no-verbose \
"https://download1.rstudio.org/rstudio-xenial-${RSTUDIO_VERSION}-amd64.deb"
gdebi -n rstudio-xenial-${RSTUDIO_VERSION}-amd64.deb
rm -f rstudio-xenial-${RSTUDIO_VERSION}-amd64.deb
rm -rf /var/lib/apt/lists/*
%apprun R
exec R "${@}"
%apprun Rscript
exec Rscript "${@}"
%apprun rstudio
exec rstudio "${@}"
%runscript
exec "${@}"
%test
exec R --version