Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
changes for variant
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgb committed Apr 15, 2024
1 parent 1592c98 commit 345fc55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ RUN /home/jupyter/notebook-env/bin/ipython profile create default

ENV PATH=/home/jupyter/notebook-env/bin:$PATH

RUN jupyter labextension disable "@jupyterlab/apputils-extension:announcements"

WORKDIR /home/jupyter/notebook

CMD /home/jupyter/notebook-env/bin/jupyter \
${JUPYTER_SUBCOMMAND:-notebook} \
--ip 0.0.0.0 \
--port $PORT \
--no-browser \
--ServerApp.token="" \
--ServerApp.base_url="${SESSION_BACKEND_STATIC_TOKEN}" \
--JupyterNotebookApp.default_url="/notebooks/hello-jamsocket.ipynb"
COPY start.sh .

CMD ./start.sh
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ docker build -t jupyter-notebook .
docker run -p 8080:8080 --env PORT=8080 -it jupyter-notebook
open localhost:8080
```

## Jupyter Lab

By default, this runs the `jupyter notebook` command. If you want to run the `jupyter lab` command instead, you can set the `JUPYTER_SUBCOMMAND` environment variable to `lab`.
10 changes: 10 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

/home/jupyter/notebook-env/bin/jupyter \
lab \
--ip 0.0.0.0 \
--port $PORT \
--no-browser \
--ServerApp.token="" \
--ServerApp.base_url="${SESSION_BACKEND_STATIC_TOKEN}" \
--NotebookApp.notebook_dir="/plane-data"

0 comments on commit 345fc55

Please sign in to comment.