Skip to content

Commit

Permalink
use mamba in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Nov 16, 2023
1 parent ede90d1 commit 046f6ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

# some general variables
env:
CONDA_PY: 39
CONDA_PY: 310
IMAGE_NAME: nnpdf

jobs:
Expand All @@ -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
Expand All @@ -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: |
Expand Down
4 changes: 3 additions & 1 deletion docker/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 046f6ab

Please sign in to comment.