File tree Expand file tree Collapse file tree 4 files changed +7
-56
lines changed Expand file tree Collapse file tree 4 files changed +7
-56
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ RUN apt-get update && \
99RUN 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
1515ENV 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
1818WORKDIR /opt/notebook
1919COPY entrypoint.sh /opt/notebook
Original file line number Diff line number Diff line change 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
55build :
66 docker build -t luisbelloch/pyspark-jupyter .
77
8- requirements.txt : build
9- docker run -t luisbelloch/pyspark-jupyter pip3 freeze > requirements.txt
10-
118tag :
12- docker tag luisbelloch/pyspark-jupyter luisbelloch/pyspark-jupyter:2019.1
9+ docker tag luisbelloch/pyspark-jupyter luisbelloch/pyspark-jupyter:2021.10
1310
1411push :
15- docker push luisbelloch/pyspark-jupyter:2019.1
12+ docker push luisbelloch/pyspark-jupyter:2021.10
1613 docker push luisbelloch/pyspark-jupyter
1714
1815run :
Original file line number Diff line number Diff line change 22set -eou pipefail
33
44readonly 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"
66pyspark
77
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments