Skip to content
This repository was archived by the owner on Nov 14, 2022. It is now read-only.

Commit ca020ba

Browse files
committed
⬆️ Update Jupyter with Lab, update dev run utils
1 parent d962729 commit ca020ba

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

{{cookiecutter.project_slug}}/backend/backend.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN pip install celery~=4.3 passlib[bcrypt] tenacity requests couchbase emails "
99

1010
# For development, Jupyter remote kernel, Hydrogen
1111
# Using inside the container:
12-
# jupyter notebook --ip=0.0.0.0 --allow-root
12+
# jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
1313
ARG env=prod
14-
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyter ; fi"
14+
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
1515
EXPOSE 8888
1616

1717
COPY ./app /app

{{cookiecutter.project_slug}}/backend/celeryworker.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ RUN pip install raven celery~=4.3 passlib[bcrypt] tenacity requests "fastapi>=0.
99

1010
# For development, Jupyter remote kernel, Hydrogen
1111
# Using inside the container:
12-
# jupyter notebook --ip=0.0.0.0 --allow-root
12+
# jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
1313
ARG env=prod
14-
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyter ; fi"
14+
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
1515
EXPOSE 8888
1616

1717
ENV C_FORCE_ROOT=1

{{cookiecutter.project_slug}}/backend/tests.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ RUN pip install requests pytest tenacity passlib[bcrypt] couchbase "fastapi>=0.1
88

99
# For development, Jupyter remote kernel, Hydrogen
1010
# Using inside the container:
11-
# jupyter notebook --ip=0.0.0.0 --allow-root
11+
# jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
1212
ARG env=prod
13-
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyter ; fi"
13+
RUN bash -c "if [ $env == 'dev' ] ; then pip install jupyterlab ; fi"
1414
EXPOSE 8888
1515

1616
COPY ./app /app

{{cookiecutter.project_slug}}/docker-compose.dev.env.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ version: '3.3'
22
services:
33
backend:
44
environment:
5-
- 'JUPYTER=jupyter notebook --ip=0.0.0.0 --allow-root'
5+
- JUPYTER=jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
66
- SERVER_HOST=http://${DOMAIN}
77
celeryworker:
88
environment:
99
- RUN=celery worker -A app.worker -l info -Q main-queue -c 1
10-
- JUPYTER=jupyter notebook --ip=0.0.0.0 --allow-root
10+
- JUPYTER=jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888
1111
- SERVER_HOST=http://${DOMAIN}
1212
backend-tests:
1313
environment:
14-
- JUPYTER=jupyter notebook --ip=0.0.0.0 --allow-root
14+
- JUPYTER=jupyter lab --ip=0.0.0.0 --allow-root --NotebookApp.custom_display_url=http://127.0.0.1:8888

0 commit comments

Comments
 (0)