-
Notifications
You must be signed in to change notification settings - Fork 17
/
Singularity
34 lines (25 loc) · 914 Bytes
/
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
BootStrap: docker
From: ubuntu:24.04
%post
export DEBIAN_FRONTEND=noninteractive
echo "Installing required packages..."
# bali-phy dependencies
apt-get update -y
apt-get install -y build-essential git cmake pandoc ccache python3-full pkg-config
python3 -m venv /venv
/venv/bin/pip install meson ninja
apt-get install -y libboost-all-dev nlohmann-json3-dev librange-v3-dev libeigen3-dev libcairo2-dev
# For run-time environment.
apt-get install -y gnuplot r-base
%environment
export PATH=$PATH:/scif/apps/bali-phy/bin
%appinstall bali-phy
export PATH=$PATH:/venv/bin
mkdir /bali-phy
cd /bali-phy
git clone https://github.com/bredelings/BAli-Phy.git git
( cd git; git checkout {{ version }} )
meson setup git build --prefix=${SCIF_APPROOT} --buildtype=release
ninja -C build install
%labels
MAINTAINER [email protected]