Skip to content

Main #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM jupyter/base-notebook:latest

RUN python -m pip install --upgrade pip
COPY requirements.txt ./requirements.txt
RUN python -m pip install -r requirements.txt
RUN python -m pip install --upgrade --no-deps --force-reinstall notebook

ARG NB_USER=jovyan
ARG NB_UID=1000
ENV USER ${NB_USER}
Expand Down Expand Up @@ -34,7 +39,7 @@ RUN rm -rf $ANACONDA_HOME/envs/$CONDA_DEFAULT_ENV/share/jupyter

## Install necessary packages
RUN apt-get update
RUN apt-get install -y build-essential curl apt-utils git
RUN apt-get install -y build-essential curl apt-utils

ENV \
# Enable detection of running in a container
Expand Down Expand Up @@ -89,7 +94,7 @@ USER ${USER}

# Install Jupyterlab with extensions
RUN echo "${YELLOW}Installing/Updating Jupyter Lab and all required packages"
RUN pip install --upgrade pip tornado jupyterlab jupyterlab-git nbdime nteract_on_jupyter elyra
RUN pip install --upgrade pip tornado jupyterlab jupyterlab-git nbdime nteract_on_jupyter

# Rebuild Jupyter Lab and relaunch after install. Reason for this is jupyterlab-git doesn't seem to work without building jupyyterlab prior to launching app
RUN echo "Rebuilding Jupyter lab... THIS WILL TAKE A WHILE! GET SOME COFFEE${NC}"
Expand Down Expand Up @@ -131,7 +136,7 @@ WORKDIR ${HOME}/Notebooks/
#################################################

## Runs Jupyter Lab on port 8888 and enables sudo to install packages
CMD jupyter lab --ip=* --port=8888 --no-browser --allow-root
#CMD jupyter lab --ip=* --port=8888 --no-browser --allow-root
# --allow-root -e GRANT_SUDO=yes --user jovyan

# to run
Expand Down
Loading