-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.3.4.2
77 lines (69 loc) · 1.93 KB
/
Singularity.3.4.2
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
Bootstrap: docker
From: centos:centos7
IncludeCmd: no
%labels
Maintainer Jeff Kriske
Version v0.0.1
R_Version 3.4.2
%environment
source /opt/rh/devtoolset-7/enable
%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.2"
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 centos-release-scl epel-release
yum install -y autoconf \
bison \
blas \
bzip2 bzip2-devel \
cairo-devel \
devtoolset-7-gcc \
devtoolset-7-gcc-c++ \
devtoolset-7-gcc-gfortran \
flex \
ftp \
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 \
pcre pcre-devel \
readline-devel \
tcl-devel \
tk-devel \
unzip \
vim-minimal \
wget \
which \
xz xz-devel \
zlib zlib-devel
cd /tmp/${R_VERSION}
source /opt/rh/devtoolset-7/enable
./configure --enable-R-shlib
make -j4
make install
make install-libR
echo /opt/rh/devtoolset-7/enable >> /tmp/${R_VERSION}/etc/ldpaths
make check
echo /opt/rh/devtoolset-7/enable >> /usr/local/lib64/R/etc/ldpaths
yum clean all && rm -rf /var/cache/yum
rm -rf /tmp/${R_VERSION}