-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingularity.def
More file actions
61 lines (51 loc) · 1.86 KB
/
Copy pathsingularity.def
File metadata and controls
61 lines (51 loc) · 1.86 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
Bootstrap: docker
From: ubuntu:24.04
%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
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
# install magnetcooling
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-magnetrun python3-magnetcooling
# create custom motd
# Install figlet!
apt update
apt install -y figlet python-is-python3
cat > /.singularity.d/env/99-motd.sh <<EOF
case \$0 in
/.singularity.d/actions/shell)
figlet
echo
echo "MagnetCooling "
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