diff --git a/scripts/run_commands b/scripts/run_commands index c64b208..6a34fff 100755 --- a/scripts/run_commands +++ b/scripts/run_commands @@ -6,17 +6,25 @@ export additional_channel="" export miniforge_arch="$(uname -m)" export miniforge_version="23.3.1-1" +export micromamba_version="1.5.10-0" export python_version="3.10" # should match the one provided in miniforge -export condapkg="https://github.com/conda-forge/miniforge/releases/download/${miniforge_version}/Miniforge3-${miniforge_version}-Linux-${miniforge_arch}.sh" if [ "$(uname -m)" = "x86_64" ]; then export conda_chksum="b3e14bd70f99bc8959445fad3532128a6af36c5e77bc62226db0e80d1df0e9e9" + export micromamba_arch="64" + export micromamba_chksum="80057e007579d482a39dc283dd3e725503e34da7e7c51844957164511cdb917b" elif [ "$(uname -m)" = "ppc64le" ]; then export conda_chksum="2eafa28fee5f1dfffb01feaca70de000f8e8335e1f659603ef0b9a40b9d1f213" + export micromamba_arch="ppc64le" + export micromamba_chksum="5528e92b12f7389a8d23a409a476e871f4f889a17e381924cf74459f14627ddd" elif [ "$(uname -m)" = "aarch64" ]; then export conda_chksum="dc5d94b83251621f088bd82df896ea45e63597293ece7ccd923b2346aed34b89" + export micromamba_arch="aarch64" + export micromamba_chksum="7803a2aa51a5f0a58f3d2ef0f07724edb67f31f61b3e44ae9b8d6c9f009f7996" else exit 1 fi +export condapkg="https://github.com/conda-forge/miniforge/releases/download/${miniforge_version}/Miniforge3-${miniforge_version}-Linux-${miniforge_arch}.sh" +export micromambapkg="https://github.com/mamba-org/micromamba-releases/releases/download/${micromamba_version}/micromamba-linux-${micromamba_arch}" # give sudo permission for conda user to run yum (user creation is postponed # to the entrypoint, so we can create a user with the same id as the host) @@ -33,6 +41,10 @@ sha256sum miniconda.sh | grep $conda_chksum bash miniconda.sh -b -p /opt/conda rm -f miniconda.sh +# Download micromamba and put it condabin +curl -s -L $micromambapkg > /opt/conda/condabin/micromamba +sha256 /opt/conda/condabin/micromamba | grep $micromamba_chksum + # Work around TLS issues while updating conda's python and retrieving channel notices export CONDA_NUMBER_CHANNEL_NOTICES="0" touch /opt/conda/conda-meta/pinned