From 1b11fd592083906d36d0603d7a189c8929e3c935 Mon Sep 17 00:00:00 2001
From: Oksana Shadura <ksu.shadura@gmail.com>
Date: Wed, 2 Oct 2024 14:16:57 +0100
Subject: [PATCH] Update miniforge to latest

---
 coffea-base/Dockerfile.almalinux8 | 6 +++---
 coffea-base/Dockerfile.almalinux9 | 6 +++---
 coffea-dask/Dockerfile.almalinux8 | 6 +++---
 coffea-dask/Dockerfile.almalinux9 | 6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/coffea-base/Dockerfile.almalinux8 b/coffea-base/Dockerfile.almalinux8
index f42143c..e62fb71 100644
--- a/coffea-base/Dockerfile.almalinux8
+++ b/coffea-base/Dockerfile.almalinux8
@@ -8,9 +8,9 @@ ENV PYTHON_VERSION=${python}
 RUN yum -y install epel-release \
      && yum -y update \
      && yum -y install curl git bzip2 libgfortran which zsh emacs vim htop man man-pages \
-     && curl -sSL https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Mambaforge-Linux-x86_64.sh -o /tmp/mambaforge.sh \
-     && bash /tmp/mambaforge.sh -bfp /usr/local \
-     && rm -rf /tmp/mambaforge.sh \
+     && wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" \
+     && bash Miniforge3.sh -bfp /usr/local \
+     && rm -rf Miniforge3.sh \
      && mamba update mamba \
      && mamba clean --all --yes \
      && rpm -e --nodeps curl bzip2 \
diff --git a/coffea-base/Dockerfile.almalinux9 b/coffea-base/Dockerfile.almalinux9
index b16e8df..5490c2a 100644
--- a/coffea-base/Dockerfile.almalinux9
+++ b/coffea-base/Dockerfile.almalinux9
@@ -8,9 +8,9 @@ ENV PYTHON_VERSION=${python}
 RUN yum -y install epel-release \
      && yum -y update \
      && yum -y --allowerasing install wget git bzip2 libgfortran which zsh emacs vim htop man man-pages \
-     && curl -sSL https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Mambaforge-Linux-x86_64.sh -o /tmp/mambaforge.sh \
-     && bash /tmp/mambaforge.sh -bfp /usr/local \
-     && rm -rf /tmp/mambaforge.sh \
+     && wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" \
+     && bash Miniforge3.sh -bfp /usr/local \
+     && rm -rf Miniforge3.sh \
      && mamba update mamba \
      && mamba clean --all --yes \
      && yum clean all
diff --git a/coffea-dask/Dockerfile.almalinux8 b/coffea-dask/Dockerfile.almalinux8
index 022e020..a08760b 100644
--- a/coffea-dask/Dockerfile.almalinux8
+++ b/coffea-dask/Dockerfile.almalinux8
@@ -8,9 +8,9 @@ ENV PYTHON_VERSION=${python}
 RUN yum -y install epel-release \
      && yum -y update \
      && yum -y install wget git bzip2 libgfortran which zsh emacs vim htop man man-pages \
-     && curl -sSL https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Mambaforge-Linux-x86_64.sh -o /tmp/mambaforge.sh \
-     && bash /tmp/mambaforge.sh -bfp /usr/local \
-     && rm -rf /tmp/mambaforge.sh \
+     && wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" \
+     && bash Miniforge3.sh -bfp /usr/local \
+     && rm -rf Miniforge3.sh \
      && mamba update mamba \
      && mamba clean --all --yes \
      && rpm -e --nodeps curl bzip2 \
diff --git a/coffea-dask/Dockerfile.almalinux9 b/coffea-dask/Dockerfile.almalinux9
index 62be0e7..5b97c1d 100644
--- a/coffea-dask/Dockerfile.almalinux9
+++ b/coffea-dask/Dockerfile.almalinux9
@@ -8,9 +8,9 @@ ENV PYTHON_VERSION=${python}
 RUN yum -y install epel-release \
      && yum -y update \
      && yum -y --allowerasing install wget git bzip2 libgfortran which zsh emacs vim htop man man-pages \
-     && curl -sSL https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Mambaforge-Linux-x86_64.sh -o /tmp/mambaforge.sh \
-     && bash /tmp/mambaforge.sh -bfp /usr/local \
-     && rm -rf /tmp/mambaforge.sh \
+     && wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" \
+     && bash Miniforge3.sh -bfp /usr/local \
+     && rm -rf Miniforge3.sh \
      #&& conda config --set solver classic \
      && mamba update mamba \
      && mamba clean --all --yes \