From c889a727e90ef4ea5bcdae0dc2e29a592aac6593 Mon Sep 17 00:00:00 2001 From: nickb <nickb@ssec.wisc.edu> Date: Thu, 2 Dec 2021 19:34:16 +0000 Subject: [PATCH] swap miniconda for mambaforge & mamba --- buildbucket/Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/buildbucket/Dockerfile b/buildbucket/Dockerfile index bcc0616..cd6360e 100644 --- a/buildbucket/Dockerfile +++ b/buildbucket/Dockerfile @@ -10,11 +10,13 @@ COPY package.sh . # Install the `which` command for debugging RUN yum -y install which git && yum clean all -# Download and install miniconda -# Copied from https://hub.docker.com/r/continuumio/miniconda3/dockerfile) -RUN curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ - /bin/bash miniconda.sh -b -p $HOME/miniconda && \ - ln -s $HOME/miniconda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ - echo ". $HOME/miniconda/etc/profile.d/conda.sh" >> ~/.bashrc && \ +# Download and install miniforge +# https://github.com/conda-forge/miniforge#miniforge +RUN curl -L -O https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh && \ + /bin/bash Mambaforge-$(uname)-$(uname -m).sh -b -p $HOME/miniforge && \ + ln -s $HOME/miniforge/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ + echo ". $HOME/miniforge/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo "conda activate base" >> ~/.bashrc -RUN /bin/bash -c "$HOME/miniconda/bin/conda env create -n build -f buildbucket_environment.yaml" + +RUN /bin/bash -c "$HOME/miniforge/bin/conda install mamba -n base -c conda-forge" +RUN /bin/bash -c "$HOME/miniforge/bin/mamba env create -n build -f buildbucket_environment.yaml" -- GitLab