Skip to content

Commit

Permalink
chore: fix local docker docs build
Browse files Browse the repository at this point in the history
Following #1499, conda is unable to find required version of sphinx:

```
0.098 + /opt/conda/bin/conda env create -n docs.clades.nextstrain.org
0.501 Channels:
0.501  - defaults
0.501 Platform: linux-64
0.501 Collecting package metadata (repodata.json): ...working... done
2.229 Solving environment: ...working... failed
2.439 
2.439 PackagesNotFoundError: The following packages are not available from current channels:
2.439 
2.439   - sphinx=7.2*
2.439 
2.439 Current channels:
2.439 
2.439   - https://repo.anaconda.com/pkgs/main/linux-64
2.439   - https://repo.anaconda.com/pkgs/r/linux-64
2.439 
2.439 To search for alternate channels that may provide the conda package you're
2.439 looking for, navigate to
2.439 
2.439     https://anaconda.org
2.439 
2.439 and use the search bar at the top of the page.
```


Let's try and add coda-forge channel
  • Loading branch information
ivan-aksamentov committed Jul 1, 2024
1 parent 19b7df8 commit c1e779a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ WORKDIR /workdir
COPY environment.yml /workdir

RUN set -euxo pipefail >/dev/null \
&& conda config --add channels conda-forge \
&& conda env create -n "docs.clades.nextstrain.org"

USER ${USER}
Expand Down

0 comments on commit c1e779a

Please sign in to comment.