Select Git revision
Singularity.micromamba.py39.eccodes 1014 B
Bootstrap: docker
From: mambaorg/micromamba:latest
%labels
maintainer IT-IMGW <it.img-wien@univie.ac.at>
python 3.9.13
eccodes 2.27.0
%files
./runscript /.singularity.d/runscript
./run-help /.singularity.d/runscript.help
%post
micromamba -q install -y -n base -c conda-forge eccodes=2.27.0 python=3.9.13 &&
/opt/conda/bin/pip install eccodes && /opt/conda/bin/pip cache purge &&
micromamba clean --all --yes
# command prompt name
CNAME=m.eccodes
# does not work goes into /.singularity.d/env/91-environment.sh
echo "export PS1=\"[IMGW-$CNAME]\w\$ \"" >> /.singularity.d/env/99-zz-custom-env.sh
# add some labels
echo "libc $(ldd --version | head -n1 | cut -d' ' -f4)" >> "$SINGULARITY_LABELS"
echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS"
%test
python -m eccodes selfcheck
%environment
export PATH=/opt/conda/bin:$PATH
export LIBRARY=/opt/conda/lib
export INCLUDE=/opt/conda/include