Skip to content

Commit

Permalink
updated jupyter notebook files
Browse files Browse the repository at this point in the history
  • Loading branch information
pravija12345 committed Jan 3, 2024
1 parent 71fb2ba commit b34fac3
Show file tree
Hide file tree
Showing 7 changed files with 317 additions and 7,155 deletions.
31 changes: 31 additions & 0 deletions docker/jupyter/Dockerfile
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
Loading

0 comments on commit b34fac3

Please sign in to comment.