Skip to content

Commit 700dbc7

Browse files
committed
Add jupyterlab to pyspark-jupyter container, set default
1 parent eb75de9 commit 700dbc7

File tree

4 files changed

+7
-56
lines changed

4 files changed

+7
-56
lines changed

infra/pyspark-jupyter/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ RUN apt-get update && \
99
RUN pip3 install --upgrade setuptools wheel && \
1010
rm -rf ~/.cache/*
1111

12-
RUN pip3 install --upgrade jupyter pandas && \
12+
RUN pip3 install --upgrade jupyterlab pandas && \
1313
rm -rf ~/.cache/*
1414

1515
ENV PYSPARK_DRIVER_PYTHON=jupyter
16-
ENV PYSPARK_DRIVER_PYTHON_OPTS="notebook --ip $(awk \'END{print $1}\' /etc/hosts) --allow-root --port 8888"
16+
ENV PYSPARK_DRIVER_PYTHON_OPTS="lab --ip $(awk \'END{print $1}\' /etc/hosts) --allow-root --port 8888"
1717

1818
WORKDIR /opt/notebook
1919
COPY entrypoint.sh /opt/notebook

infra/pyspark-jupyter/Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
1-
.PHONY: all build tag push list run
1+
.PHONY: build tag push list run
22

3-
all: build requirements.txt tag
3+
all: build tag
44

55
build:
66
docker build -t luisbelloch/pyspark-jupyter .
77

8-
requirements.txt: build
9-
docker run -t luisbelloch/pyspark-jupyter pip3 freeze > requirements.txt
10-
118
tag:
12-
docker tag luisbelloch/pyspark-jupyter luisbelloch/pyspark-jupyter:2019.1
9+
docker tag luisbelloch/pyspark-jupyter luisbelloch/pyspark-jupyter:2021.10
1310

1411
push:
15-
docker push luisbelloch/pyspark-jupyter:2019.1
12+
docker push luisbelloch/pyspark-jupyter:2021.10
1613
docker push luisbelloch/pyspark-jupyter
1714

1815
run:

infra/pyspark-jupyter/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
set -eou pipefail
33

44
readonly IP=$(awk 'END{print $1}' /etc/hosts)
5-
export PYSPARK_DRIVER_PYTHON_OPTS="notebook --ip \"${IP}\" --allow-root --port 8888"
5+
export PYSPARK_DRIVER_PYTHON_OPTS="lab --ip \"${IP}\" --allow-root --port 8888"
66
pyspark
77

infra/pyspark-jupyter/requirements.txt

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)