-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.3.4.4
91 lines (84 loc) · 2.28 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Bootstrap: docker
From: centos:centos7
IncludeCmd: no
%labels
Maintainer Jeff Kriske
Version v0.1.0
R_Version 3.4.4
%environment
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
%apprun R
exec R "$@"
%apprun Rscript
exec Rscript "$@"
%runscript
exec R "$@"
%post
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export R_VERSION="R-3.4.4"
yum update -y
cd /tmp
curl -O http://ftp.ussg.iu.edu/CRAN/src/base/R-3/${R_VERSION}.tar.gz
tar xf ${R_VERSION}.tar.gz && rm ${R_VERSION}.tar.gz
yum install -y epel-release
yum install -y autoconf \
bison \
blas \
bzip2 bzip2-devel \
cairo-devel \
fdupes \
flex \
ftp \
gcc \
gcc-c++ \
gcc-gfortran \
gettext \
git \
java-1.8.0-openjdk-devel \
lapack \
libcurl-devel \
libicu-devel \
libjpeg-turbo libjpeg-devel \
libpng libpng-devel \
libtiff libtiff-devel \
libXt-devel \
m4 \
make \
ncurses-devel \
openssl-devel \
pango-devel \
pcre pcre-devel \
perl-macros \
perl-Text-Unidecode.noarch \
readline-devel \
tar \
tcl-devel \
texlive-helvetic \
texlive-metafont \
texlive-psnfss \
texlive-times \
tk-devel \
unzip \
vim-minimal \
wget \
which \
xdg-utils \
xorg-x11-fonts-ISO* \
xz xz-devel \
zlib zlib-devel
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& locale-gen en_US.utf8 \
&& /usr/sbin/update-locale LANG=en_US.UTF-8
echo "Etc/UTC" /etc/timezone
cd /tmp/${R_VERSION}
dbus-uuidgen >/etc/machine-id
rm /usr/bin/timedatectl
./configure --enable-R-shlib
make -j4
make install
make install-libR
make check
yum clean all && rm -rf /var/cache/yum
rm -rf /tmp/${R_VERSION}