-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from finsberg/formatting
Update hooks and build docs settings
- Loading branch information
Showing
19 changed files
with
122 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
# Use github pages for docker image | ||
FROM ghcr.io/finsberg/fenicsx-pulse:v0.1.5 | ||
# We choose ubuntu 22.04 as our base docker image | ||
FROM ghcr.io/fenics/dolfinx/dolfinx:v0.8.0 | ||
|
||
# Create user with a home directory | ||
ARG NB_USER | ||
ARG NB_UID=1000 | ||
ENV USER ${NB_USER} | ||
ENV HOME /home/${NB_USER} | ||
ENV PYVISTA_JUPYTER_BACKEND="html" | ||
|
||
# Copy current directory | ||
WORKDIR ${HOME} | ||
COPY . ${HOME} | ||
# Requirements for pyvista | ||
RUN apt-get update && apt-get install -y libgl1-mesa-glx libxrender1 xvfb nodejs | ||
|
||
# Change ownership of home directory | ||
USER root | ||
RUN chown -R ${NB_UID} ${HOME} | ||
COPY . /repo | ||
WORKDIR /repo | ||
|
||
USER ${NB_USER} | ||
ENTRYPOINT [] | ||
ARG TARGETPLATFORM | ||
RUN echo "Building for $TARGETPLATFORM" | ||
RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then python3 -m pip install "https://github.com/finsberg/vtk-aarch64/releases/download/vtk-9.2.6-cp310/vtk-9.2.6.dev0-cp310-cp310-linux_aarch64.whl"; fi | ||
|
||
RUN python3 -m pip install ".[docs]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.