-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathchimp_singularity.def
More file actions
26 lines (20 loc) · 859 Bytes
/
chimp_singularity.def
File metadata and controls
26 lines (20 loc) · 859 Bytes
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
Bootstrap: localimage
From: /home/simonpf/src/chimp_singularity/chimp_conda.sif
%files
/home/simonpf/src/pansat /pansat
/home/simonpf/src/quantnn /quantnn
/home/simonpf/src/chimp /chimp
/home/simonpf/src/pytorch_retrieve /pytorch_retrieve
%environment
export PATH="/opt/conda/bin:$PATH"
export PATH="/opt/conda/envs/chimp/bin:$PATH"
%post
/opt/conda/envs/chimp/bin/python3 -m pip install -e /pansat
/opt/conda/envs/chimp/bin/python3 -m pip install -e /quantnn
/opt/conda/envs/chimp/bin/python3 -m pip install -e /pytorch_retrieve
/opt/conda/envs/chimp/bin/python3 -m pip install -e /chimp
/opt/conda/envs/chimp/bin/python3 -m pip install notebook
echo ". /singularity_shell_init.sh" >> $SINGULARITY_ENVIRONMENT
echo "micromamba activate chimp" >> $SINGULARITY_ENVIRONMENT
%runscript
exec "$@"