-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSingularity
More file actions
27 lines (19 loc) · 837 Bytes
/
Singularity
File metadata and controls
27 lines (19 loc) · 837 Bytes
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
Bootstrap: docker
From: eddelbuettel/r2u:jammy
%files
./install/* install/
./runAnalysis.R ./
%post
apt-get update &&
apt-get -y install --no-install-recommends git bzip2 libglpk-dev libjpeg-dev libz-dev libxt-dev libtiff5-dev libbz2-dev libfontconfig1-dev libssl-dev cmake && rm -rf /var/lib/apt/lists/*
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.0.37/quarto-1.0.37-linux-amd64.deb
dpkg -i quarto-1.0.37-linux-amd64.deb
rm quarto-1.0.37-linux-amd64.deb
#install the R libraries needed
Rscript ./install/install.R
#reduce the image size by removing tools not needed to run the analysis
apt-get purge -y --auto-remove gcc git build-essential
rm -r /usr/local/lib/R/site-library/GeoMxWorkflows/extdata
rm -r /usr/local/lib/R/site-library/GeomxTools/extdata
%runscript
Rscript runAnalysis.R