-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsingularity.def
More file actions
88 lines (77 loc) · 2.87 KB
/
singularity.def
File metadata and controls
88 lines (77 loc) · 2.87 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Bootstrap: docker
From: debian:13
%environment
export OMPI_MCA_btl_vader_single_copy_mechanism=none
%labels
AUTHOR christophe.trophime@lncmi.cnrs.fr
%post
apt update
apt install -y debian-keyring curl wget gpg bash-completion tree coreutils
# Configure apt and install packages \
wget -qO - http://apt.feelpp.org/apt.gpg | apt-key add -
echo "deb http://apt.feelpp.org/ubuntu/noble noble latest" | tee -a /etc/apt/sources.list.d/feelpp.list
rm -f apt.gpg
apt update
cp /usr/share/keyrings/debian-maintainers.gpg /etc/apt/trusted.gpg.d
apt-get update
apt-get -y install git iproute2 procps lsb-release iputils-ping nmap
apt-get -y install python3-minimal libpython3-dev
apt-get -y install python-is-python3 python3-pip python3-venv python3-jinja2
apt-get -y install python3-matplotlib
apt-get -y install python3-statsmodels
apt-get -y install python3-pandas python3-seaborn
apt-get -y install python3-numpy python3-scipy
apt-get -y install python3-nlopt python3-tabulate
apt-get -y install python3-pip python-is-python3
apt-get -y install python3-pint
apt-get -y install python3-decouple python3-requests python3-natsort
apt-get -y install python3-iapws
apt-get -y install jsonlint yamllint
apt-get -y install zutty
apt-get -y install texlive-latex-base texlive-latex-extra dvipng cm-super-minimal
apt-get -y install feelpp-quickstart feelpp-data \
feelpp-toolboxes \
feelpp-toolboxes-coefficientformpdes \
feelpp-toolboxes-data\
feelpp-toolboxes-electric \
feelpp-toolboxes-hdg \
feelpp-toolboxes-heat \
feelpp-toolboxes-heatfluid \
feelpp-toolboxes-solid \
feelpp-toolboxes-thermoelectric \
feelpp-tools \
python3-feelpp \
python3-feelpp-toolboxes \
python3-feelpp-toolboxes-coefficientformpdes \
python3-feelpp-toolboxes-core \
python3-feelpp-toolboxes-electric \
python3-feelpp-toolboxes-hdg \
python3-feelpp-toolboxes-heat \
python3-feelpp-toolboxes-solid \
python3-feelpp-toolboxes-thermoelectric
# install magnetworkflows
echo "deb http://euler.lncmig.local/~christophe.trophime@LNCMIG.local/debian/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/lncmi.list
apt-get update
apt-get -y install python3-simple-pid
apt-get -y install python3-magnettools python3-magnetworkflows
# create custom motd
# Install figlet!
apt update
apt install -y figlet python-is-python3
version=$(/usr/bin/feelpp_mesh_partitioner --version 2>/dev/null | tail -1 | cut -d ":" -f2)
cat > /.singularity.d/env/99-motd.sh <<EOF
case \$0 in
/.singularity.d/actions/shell)
figlet ${version}
echo
echo "MagnetWorflows (Feelpp Toolboxes)"
echo
echo "Hello \$USER from shell" ;;
/.singularity.d/actions/exec)
echo "Hello \$USER from exec" ;;
/.singularity.d/actions/run)
echo "Hello \$USER from run" ;;
/.singularity.d/actions/test)
echo "Hello \$USER from test" ;;
esac
EOF