Skip to content

Commit

Permalink
fix: adding pyvista to docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed May 29, 2024
1 parent 1a7c39f commit b3bdcd7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ RUN apt-get update -qq && \
libgl1\
libtinfo5\
libtiff5\
libgl1-mesa-glx
libgl1-mesa-glx\
xvfb
RUN conda install -c conda-forge\
# python"<=3.8"\
cython\
Expand All @@ -33,8 +34,7 @@ RUN conda install -c conda-forge\
pydata-sphinx-theme\
-y
RUN pip install git+https://github.com/geopandas/geopandas.git@v0.10.2
RUN pip install lavavu-osmesa==1.8.45
ENV LD_LIBRARY_PATH=/opt/conda/lib/python3.10/site-packages/lavavu_osmesa.libs
RUN pip install loopstructuralvisualisation[all]
RUN pip install sphinxcontrib-bibtex
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
Expand Down
9 changes: 9 additions & 0 deletions docs/build_docs.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
#!/bin/bash
set -x
export DISPLAY=:99.0
export PYVISTA_OFF_SCREEN=true
which Xvfb
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
sleep 3
set +x
exec "$@"
pip install ./LoopStructural
make -C LoopStructural/docs html
1 change: 1 addition & 0 deletions docs/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ services:
volumes:
- ../:/LoopStructural
command: ./LoopStructural/docs/build_docs.sh
tty: true

0 comments on commit b3bdcd7

Please sign in to comment.