From e0913d1e0c17da5141b6124f4e8c029b4ce842af Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 15 Jan 2024 08:51:00 +0100 Subject: [PATCH] update micromamba bootstrap in ci/ssh Dockerfile it's not so easy to unpack micromamba package anymore but binaries are on GitHub Releases, which is easier! --- ci/ssh/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/ssh/Dockerfile b/ci/ssh/Dockerfile index 6ee55bc44..cd6441edf 100644 --- a/ci/ssh/Dockerfile +++ b/ci/ssh/Dockerfile @@ -8,8 +8,10 @@ RUN --mount=type=cache,target=/var/cache/apt \ ENV MAMBA_ROOT_PREFIX=/opt/conda ENV PATH=$MAMBA_ROOT_PREFIX/bin:$PATH ENV IPP_DISABLE_JS=1 -RUN wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba \ - && mv bin/micromamba /usr/local/bin/micromamba +# x86_64 -> 64, aarch64 unmodified +RUN ARCH=$(uname -m | sed s@x86_@@) \ + && wget -qO- https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-linux-${ARCH} > /usr/local/bin/micromamba \ + && chmod +x /usr/local/bin/micromamba RUN --mount=type=cache,target=${MAMBA_ROOT_PREFIX}/pkgs \ micromamba install -y -p $MAMBA_ROOT_PREFIX -c conda-forge \