-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSingularity
38 lines (31 loc) · 1.3 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
BootStrap: docker
From: ubuntu:xenial
Stage: build
%post
apt-get update
apt-get install -y build-essential git autoconf wget lbzip2 pkg-config cmake
apt-get install -y zlib1g-dev libbz2-dev libexpat1-dev
apt-get install -y libncurses5-dev liblzma-dev libssl-dev libcurl4-openssl-dev curl
apt-get install -y libfreetype6-dev libfontconfig1-dev
curl https://sh.rustup.rs -sSf > rust.sh && sh rust.sh -y
mkdir -p /usr/local/build; cd /usr/local/build
git clone --recursive https://github.com/heathsc/gemBS-rs.git
(cd gemBS-rs; PATH=$PATH:/root/.cargo/bin GEMBS_CONTAINER=1 make install)
echo /usr/local/lib/gemBS/lib > /etc/ld.so.conf.d/gemBS.conf && ldconfig
BootStrap: docker
From: ubuntu:xenial
%files from build
/usr/local/lib/gemBS
%runscript
exec gemBS $@
%environment
export PATH=/usr/local/lib/gemBS/bin:/usr/local/lib/gemBS/texlive/bin/x86_64-linux:$PATH
%help
gemBS singularity container
%post
apt-get update
(mkdir /ext && cd /ext && mkdir disk1 disk2 disk3 disk4 disk5 disk6 disk7 disk8 disk9)
apt-get install -y lbzip2 zlib1g libexpat1
apt-get install -y libncurses5 liblzma5 libssl1.0.0 libcurl3
apt-get install -y libfreetype6 libfontconfig1 perl-modules-5.22
echo /usr/local/lib/gemBS/lib > /etc/ld.so.conf.d/gemBS.conf && ldconfig