From 046f6ab962a9fbe281a3fe1910b4ad3bcbc43554 Mon Sep 17 00:00:00 2001 From: RoyStegeman Date: Thu, 16 Nov 2023 10:25:39 +0000 Subject: [PATCH] use mamba in docker --- .github/workflows/docker.yml | 10 ++++++---- docker/dockerfile | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 02c6a9d287..3e81a91a17 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,7 +8,7 @@ on: # some general variables env: - CONDA_PY: 39 + CONDA_PY: 310 IMAGE_NAME: nnpdf jobs: @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.9] + python-version: ["3.10"] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v1 @@ -27,14 +27,16 @@ jobs: - name: Setup conda and install conda-build shell: bash -l {0} run: | + conda install -n base conda-libmamba-solver + conda config --set solver libmamba conda config --append channels conda-forge conda config --prepend channels https://packages.nnpdf.science/public conda config --set show_channel_urls true - conda install conda-build --yes + conda install boa --yes - name: Build recipe shell: bash -l {0} run: | - CONDA_PY=$CONDA_PY conda build --no-test -q conda-recipe + CONDA_PY=$CONDA_PY conda mambabuild --no-test -q conda-recipe # install local build - name: Copying conda channel locally run: | diff --git a/docker/dockerfile b/docker/dockerfile index 0d54bc3617..f4ef913014 100644 --- a/docker/dockerfile +++ b/docker/dockerfile @@ -30,7 +30,9 @@ RUN wget "$CONDA_URL" && \ ENV PATH /root/miniconda3/bin:$PATH # Setup conda channels -RUN conda config --append channels conda-forge && \ +RUN conda install -n base conda-libmamba-solver && \ + conda config --set solver libmamba && \ + conda config --append channels conda-forge && \ conda config --prepend channels https://packages.nnpdf.science/public/ && \ conda config --set show_channel_urls true && \ conda init bash