-
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.
- Loading branch information
1 parent
71fb2ba
commit b34fac3
Showing
7 changed files
with
317 additions
and
7,155 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
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.