-
Notifications
You must be signed in to change notification settings - Fork 3
/
qp2_qmcchem.def
54 lines (44 loc) · 1.37 KB
/
qp2_qmcchem.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
50
51
52
53
54
Bootstrap: localimage
From: ./qp2_pure.sif
%files
qmcchem_install.sh /
qmcchem_plugin_install.sh /
trexio_dev_install.sh /
qmckl_dev_install.sh /
# actions when container is built after the base OS is installed
# INSTALL NEW APPLICATIONS HERE
%post
apt update
apt install -y emacs autoconf automake libtool
apt install -y iproute2
echo "TREXIO installation"
cd /trexio-2.1.0
make uninstall
cd ..
./trexio_dev_install.sh
export PKG_CONFIG_PATH=/trexio/pkgconfig:$PKG_CONFIG_PATH
echo "QMCkl installation"
./qmckl_dev_install.sh
export PKG_CONFIG_PATH=/qmckl/pkgconfig:$PKG_CONFIG_PATH
echo "QMC=Chem installation"
./qmcchem_install.sh
echo "QMC=Chem plugin installation"
./qmcchem_plugin_install.sh
# container-wide environment variables
%environment
export QP_ROOT=/qp2/
# actions when container is executed
%runscript
echo "Container was created $NOW"
echo "QP is installed in $QP_ROOT"
echo "Arguments received: $*"
exec $QP_ROOT/bin/qpsh "$@"
# custom metadata (explore with `singularity inspect my_container.sif`)
%labels
Label QP with QMC=Chem
Author q-posev
Version v0.2.0_alpha
# help string (explore with `singularity run-help my_container.sif`)
%help
This is a container with Quantum Package and QMC=Chem.
It can be used to run QP and/or QMC=Chem calculations.