-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
73 lines (59 loc) · 2.1 KB
/
Singularity
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
BootStrap: docker
From: ubuntu:18.04
# Build: sudo singularity build out.simg Singularity
# Build: sudo writable: singularity build --writable out.sim Singularity
# Update: 200205 bump
%post
R_BASE_VERSION="3.6.1"
# Setup system packages
apt-get -qq update
apt-get upgrade -y
apt-get install -y \
apt-transport-https \
gnupg \
ca-certificates \
libc6 \
libcurl4-openssl-dev \
libxml2-dev \
libfftw3-dev \
git \
wget \
zip \
libssl-dev \
vim-tiny \
libglu1-mesa-dev \
locales \
locales-all \
libudunits2-dev
locale-gen en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_MONETARY=en_US.UTF-8
export LC_PAPER=en_US.UTF-8
export LC_MEASUREMENT=en_US.UTF-8
export LC_TIME=en_US.UTF-8
# Setup R repository
echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
apt-get -qq update
apt-get upgrade -y
# Install R
apt-get install -y --no-install-recommends \
littler \
r-base-core=${R_BASE_DEV}* \
r-base-dev=${R_BASE_DEV}*
# Prepare R repositories
echo 'options(repos = c(CRAN = "https://cran.rstudio.com/"), download.file.method = "libcurl")' >> /etc/R/Rprofile.site
echo 'source("/etc/R/Rprofile.site")' >> /etc/littler.r
# Rscript /etc/little.r
echo 'devtools::install_github("ComputationalProteomics/FusariumResponseInOatMethods")' >> install_oatomics.R
# Rscript install_oatomics.R
wget https://github.com/ComputationalProteomics/FusariumResponseInOatMethods/releases/download/v1.0/oatomics_inputs.zip
unzip oatomics_inputs.zip
#wget https://lu.box.com/shared/static/8damc11jumvj20ei20jyql3rfjhwa8bd.zip
#unzip 8damc11jumvj20ei20jyql3rfjhwa8bd.zip
echo 'OatOmics::launchApp("/oatomics_inputs")' > run.R
%runscript
exec Rscript /run.R