-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
27 lines (20 loc) · 888 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM quay.io/geodocker/jupyter-geopyspark:base-8
ARG GEOPYSPARK_VERSION
ARG GEOPYSPARKSHA
ENV PYSPARK_PYTHON=python3.4
ENV PYSPARK_DRIVER_PYTHON=python3.4
# Set up Jupyter
RUN mkdir /home/hadoop/notebooks && \
pip3 install --user pytest && \
jupyter nbextension enable --py widgetsnbextension
COPY kernels/local/kernel.json /home/hadoop/.local/share/jupyter/kernels/pyspark/kernel.json
# Install GeoPySpark
RUN pip3 install --user protobuf==3.3.0 traitlets==4.3.2 "https://github.com/locationtech-labs/geopyspark/archive/$GEOPYSPARKSHA.zip"
# Install Jars
ADD https://s3.amazonaws.com/geopyspark-dependency-jars/geotrellis-backend-assembly-${GEOPYSPARK_VERSION}.jar /opt/jars/
USER root
RUN chmod ugo+r /opt/jars/*
RUN chown -R hadoop:hadoop /home/hadoop/.local/share
USER hadoop
WORKDIR /tmp
CMD ["jupyterhub", "--no-ssl", "--Spawner.notebook_dir=/home/hadoop/notebooks"]