-
Notifications
You must be signed in to change notification settings - Fork 0
/
quack.def
50 lines (38 loc) · 953 Bytes
/
quack.def
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
Bootstrap: docker
From: ubuntu:22.04
%labels
Author abd.ammar.phys@gmail.com
%help
Container for running QuAcK
%environment
export LANG="C"
export LANGUAGE=$LANG
export LC_ALL=$LANG
#export OMP_NUM_THREADS=1
%setup
mkdir -p ${APPTAINER_ROOTFS}/opt/install
cp env.rc ${APPTAINER_ROOTFS}/opt/
cp quack.def \
install_compilers.sh \
install_pyscf.sh \
install_quack.sh \
cleanup_compilers.sh \
setup_image.sh \
${APPTAINER_ROOTFS}/opt/install
%post
ARCH=$(uname -i)
cd /opt/install
./setup_image.sh
apt update && apt install -y --no-install-recommends
./install_compilers.sh
./install_pyscf.sh
./install_quack.sh
./cleanup_compilers.sh
apt clean && rm -rf /var/lib/apt/lists/*
%runscript
#!/bin/bash
. /opt/env.rc
cd /opt/QuAcK
exec "$@"
%test
ls /opt/QuAcK/bin/QuAcK || exit 1