-
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.
Pd feature/example/heat conduction greedy (#20)
* added jupyter notebook docker file * added jupyter versions of dg_euler and poisson_global-rom * Update README.md * Update README.md * added nonlinear_elasticity for dmd and prom * Update README.md * Update README.md * added wave_equation and parametric_heatconduction ipynb files * updated jupyter notebook files * removed docker file * Update README.md
- Loading branch information
1 parent
dda95c6
commit 78e9756
Showing
8 changed files
with
5,194 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# start from pylibrom docker container | ||
FROM --platform=linux/amd64 ghcr.io/llnl/pylibrom/pylibrom_env:latest | ||
ENV ENVDIR=env | ||
ENV LIB_DIR=/$ENVDIR/dependencies | ||
WORKDIR $LIB_DIR | ||
|
||
# WORKDIR /env/dependencies | ||
RUN sudo git clone --recursive https://github.com/LLNL/pylibROM.git | ||
WORKDIR pylibROM | ||
RUN sudo -E pip install ./ --global-option="--librom_dir=/env/dependencies/libROM" | ||
|
||
# Install Jupyter Notebook | ||
RUN sudo apt-get install -yq python3-pip | ||
RUN sudo pip3 install jupyter | ||
|
||
# Create a directory for Jupyter notebooks | ||
RUN mkdir /home/$USERNAME/notebooks | ||
WORKDIR /home/$USERNAME/notebooks | ||
|
||
# Configure Jupyter Notebook | ||
RUN jupyter notebook --generate-config | ||
RUN echo "c.NotebookApp.ip = '*'" >> /home/$USERNAME/.jupyter/jupyter_notebook_config.py | ||
|
||
# Expose the Jupyter Notebook port | ||
EXPOSE 8888 | ||
|
||
# Run Jupyter Notebook | ||
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"] | ||
|
||
# create and switch to a user | ||
WORKDIR /home/$USERNAME |
Oops, something went wrong.