Skip to content
Snippets Groups Projects
Commit 1d65e712 authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

added micromamba templates

parent eb419200
No related branches found
No related tags found
No related merge requests found
Bootstrap: docker
From: mambaorg/micromamba:latest
%help
Micromamba conda environment with
Python 3.9.13 and the latest eccodes (binary+py)
https://pypi.org/project/eccodes/
%labels
maintainer M. Blaschek
mail michael.blaschek@univie.ac.at
date 7.10.2022
python 3.9.13
eccodes 2.27.0
gcc 9.5.0
gfortran 9.5.0
%post
micromamba -q install -y -n base -c conda-forge eccodes=2.27.0 cdo nco netcdf4 hdf5 openmpi=4.0.5 gcc=9.5.0 gfortran=9.5.0 python=3.9.13 &&
/opt/conda/bin/pip install eccodes && /opt/conda/bin/pip cache purge &&
micromamba clean --all --yes
%environment
LIBRARY=/opt/conda/lib
INCLUDE=/opt/conda/include
BIN=/opt/conda/bin
SHARE=/opt/conda/share
%test
/opt/conda/bin/python3 -m eccodes selfcheck
Bootstrap: docker
From: mambaorg/micromamba:latest
%help
Micromamba conda environment with
Python 3.9.13 and the latest eccodes (binary+py)
https://pypi.org/project/eccodes/
%labels
maintainer M. Blaschek
mail michael.blaschek@univie.ac.at
date 7.10.2022
python 3.9.13
eccodes 2.27.0
%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
%test
python -m eccodes selfcheck
Bootstrap: library
From: mblaschek/imgw/ubuntu:18.04
Bootstrap: docker
From: ubuntu:18.04
%labels
......@@ -10,7 +10,7 @@ From: mblaschek/imgw/ubuntu:18.04
AUTHOR_NAME Michael Blaschek
AUTHOR_EMAIL michael.blaschek@univie.ac.at
LAST_UPDATED 20211118
LAST_UPDATED 20220930
%setup
......@@ -45,7 +45,7 @@ From: mblaschek/imgw/ubuntu:18.04
export DEBIAN_FRONTEND='noninteractive'
# Upgrade all software packages to their latest versions
apt-get -y update && apt-get -y upgrade
apt-get -y update && apt-get -y upgrade && apt-get -y install wget locate
cd /tmp
......@@ -66,9 +66,11 @@ From: mblaschek/imgw/ubuntu:18.04
wget "${CONDA_ROOT_URL}/${CONDA_DISTRIBUTION}/${CONDA_INSTALLER}"
chmod +x "${CONDA_INSTALLER}"
"./${CONDA_INSTALLER}" -b -p "${CONDA_INSTALL_DIR}"
# Now install some packages with conda
$CONDA_INSTALL_DIR/bin/conda install -y -c conda-forge ipython numpy xarray pandas hdf5
# Remove conda installer
rm "${CONDA_INSTALLER}"
$CONDA_INSTALL_DIR/bin/conda clean -a -y
# Cleanup
apt-get -y autoremove --purge
......@@ -80,5 +82,6 @@ From: mblaschek/imgw/ubuntu:18.04
%files
%runscript
echo "Arguments received: $*"
exec "$@"
%test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment