-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from jamesmcclain/feature/geonotebook
Early GeoNotebook Capability
- Loading branch information
Showing
15 changed files
with
648 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
archives/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
FROM quay.io/geodocker/jupyter:3 | ||
FROM quay.io/geodocker/jupyter:4 | ||
|
||
COPY archives/geotrellis-backend-assembly-0.1.0.jar /blobs/ | ||
COPY archives/gdal-and-friends.tar.gz /blobs/ | ||
COPY archives/geopyspark-and-friends.tar.gz /blobs/ | ||
COPY archives/geotrellis-backend-assembly-0.1.0.jar /blobs/ | ||
# Install GDAL, GeoPySpark, &c. | ||
COPY blobs/gdal-and-friends.tar.gz /blobs/ | ||
COPY blobs/geopyspark-and-friends.tar.gz /blobs/ | ||
COPY blobs/geotrellis-backend-assembly-0.1.0.jar /blobs/ | ||
COPY scripts/install-blobs.sh /scripts/ | ||
COPY kernels/local/kernel.json /usr/local/share/jupyter/kernels/pyspark/ | ||
COPY kernels/yarn/kernel.json /usr/local/share/jupyter/kernels/pysparkyarn/ | ||
|
||
COPY config/requirements.txt /tmp/requirements.txt | ||
ENV LD_LIBRARY_PATH /home/hadoop/local/gdal/lib | ||
RUN /scripts/install-blobs.sh | ||
|
||
# Install GeoNotebook dependencies | ||
RUN pip3 install --user -r /tmp/requirements.txt && \ | ||
pip3 install --user "https://github.com/OpenGeoscience/ktile/archive/6f134e86f90242c8393fe1912435a5fb99c6256d.zip" | ||
|
||
# Patch and install GeoNotebook | ||
COPY blobs/geonotebook.tar /tmp | ||
COPY config/patch.diff /tmp | ||
RUN (pushd /tmp ; tar axvf geonotebook.tar ; popd) && \ | ||
(pushd /tmp/geonotebook ; patch -p1 < /tmp/patch.diff ; pip3 install --user . ; popd) && \ | ||
jupyter nbextension enable --py widgetsnbextension && \ | ||
jupyter serverextension enable --py geonotebook && \ | ||
jupyter nbextension enable --py geonotebook | ||
COPY config/geonotebook.ini /home/hadoop/.local/etc/geonotebook.ini | ||
COPY kernels/geonotebook-local/kernel.json /home/hadoop/.local/share/jupyter/kernels/geonotebook3/kernel.json | ||
|
||
# Copy notebook | ||
COPY notebooks/Zork.ipynb /home/hadoop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[default] | ||
vis_server = geotrellis | ||
log_level = WARNING | ||
|
||
[geotrellis] | ||
url = http://127.0.0.1:8000/user/jack/geotrellis | ||
|
||
[geoserver] | ||
username = admin | ||
password = geoserver | ||
url = http://127.0.0.1:8080/geoserver | ||
|
||
[ktile] | ||
url = http://127.0.0.1:8000/ktile | ||
default_cache = ktile_default_cache | ||
|
||
[ktile_default_cache] | ||
name = Test | ||
path = /tmp/stache | ||
umask = 0000 | ||
|
||
[basemap] | ||
url = http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png | ||
attribution = Tile data © <a href="http://osm.org/copyright"> OpenStreetMap</a> contributors |
Oops, something went wrong.