-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into gunicorn-optimization
- Loading branch information
Showing
24 changed files
with
479 additions
and
201 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
docker | ||
!docker/actinia-core/snap | ||
!docker/actinia-core/actinia.cfg | ||
!docker/actinia-core/start.sh | ||
!docker/actinia-core/start-dev.sh | ||
.gitignore | ||
.github | ||
.travis | ||
.travis.yml | ||
.eggs | ||
.pytest_cache | ||
build | ||
dist |
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,22 +1,22 @@ | ||
# Makefile to run setup.py | ||
|
||
clean: | ||
python setup.py clean | ||
python3 setup.py clean | ||
|
||
docs: | ||
python setup.py docs | ||
python3 setup.py docs | ||
|
||
build: | ||
python setup.py build | ||
python3 setup.py build | ||
|
||
install: | ||
python setup.py install | ||
python3 setup.py install | ||
|
||
bdist: | ||
python setup.py bdist | ||
python3 setup.py bdist | ||
|
||
dist: | ||
python setup.py dist | ||
python3 setup.py dist | ||
|
||
test: | ||
python setup.py test | ||
python3 setup.py test |
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
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,16 +1,8 @@ | ||
FROM mundialis/grass-py3-pdal | ||
FROM mundialis/grass-py3-pdal:stable-ubuntu | ||
|
||
LABEL authors="Carmen Tawalika,Anika Bettge,Markus Neteler,Sören Gebbert" | ||
LABEL maintainer="[email protected],[email protected],[email protected],[email protected]" | ||
|
||
ARG SOURCE_GIT_URL=https://github.com | ||
ARG SOURCE_GIT_REMOTE=mundialis | ||
ARG SOURCE_GIT_REPO=actinia_core | ||
# can be "tags" (for tag) or "heads" (for) branch | ||
ARG SOURCE_GIT_TYPE=heads | ||
# can be a tag name or branch name | ||
ARG SOURCE_GIT_REF=master | ||
|
||
ENV GDAL_CACHEMAX=2000 | ||
ENV GRASS_COMPRESSOR=ZSTD | ||
|
||
|
@@ -34,6 +26,7 @@ RUN apt-get update && apt-get upgrade -y && \ | |
python3 \ | ||
python3-dateutil \ | ||
python3-dev \ | ||
python3-gdal \ | ||
python3-magic \ | ||
python3-pip \ | ||
python3-ply \ | ||
|
@@ -65,12 +58,6 @@ RUN ln -s `grass --config path` /usr/local/grass7 | |
# show installed version | ||
RUN grass --tmp-location EPSG:4326 --exec g.version -rge | ||
|
||
# Install actinia-core plugins | ||
RUN git config --global http.sslVerify false | ||
RUN git clone https://github.com/mundialis/actinia_statistic_plugin.git /src/actinia_statistic_plugin | ||
WORKDIR /src/actinia_statistic_plugin | ||
RUN pip3 install -r requirements.txt && python3 setup.py install | ||
|
||
# Install GRASS GIS addons | ||
WORKDIR /src | ||
# Install the d.rast.multi module to render several maps at once | ||
|
@@ -82,26 +69,35 @@ RUN grass --tmp-location EPSG:4326 --exec g.extension -s extension=i.cutlines && | |
grass --tmp-location EPSG:4326 --exec g.extension -s extension=v.out.png && \ | ||
grass --tmp-location EPSG:4326 --exec g.extension -s extension=v.centerpoint | ||
|
||
# Set python shebangs to python3, just to be sure | ||
WORKDIR /root/.grass7/addons/scripts | ||
RUN find -type f | xargs sed -zi 's,#!/usr/bin/env python\n,#!/usr/bin/env python3\n,' | ||
|
||
# install SNAPPY | ||
RUN apt-get install default-jdk maven -y | ||
ENV JAVA_HOME "/usr/lib/jvm/java-11-openjdk-amd64" | ||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1 | ||
COPY snap /src/snap | ||
COPY docker/actinia-core/snap /src/snap | ||
RUN sh /src/snap/install.sh | ||
RUN update-alternatives --remove python /usr/bin/python3 | ||
|
||
# Install actinia-core | ||
WORKDIR /src | ||
|
||
ADD https://api.github.com/repos/$SOURCE_GIT_REMOTE/$SOURCE_GIT_REPO/git/refs/$SOURCE_GIT_TYPE/$SOURCE_GIT_REF version.json | ||
RUN git clone -b ${SOURCE_GIT_REF} --single-branch ${SOURCE_GIT_URL}/${SOURCE_GIT_REMOTE}/${SOURCE_GIT_REPO}.git actinia_core | ||
COPY . /src/actinia_core | ||
|
||
# set link to match actinia default config (needed for tests) | ||
RUN ln -s /actinia_core /root/actinia | ||
|
||
WORKDIR /src/actinia_core | ||
RUN pip3 install -r requirements.txt && python3 setup.py install | ||
## TODO: fix tests | ||
#\ | ||
# && python3 setup.py test | ||
|
||
# Install actinia-core plugins | ||
RUN git config --global http.sslVerify false | ||
RUN git clone https://github.com/mundialis/actinia_statistic_plugin.git /src/actinia_statistic_plugin | ||
WORKDIR /src/actinia_statistic_plugin | ||
RUN pip3 install -r requirements.txt && python3 setup.py install | ||
## TODO: fix tests | ||
#\ | ||
# && python3 setup.py test | ||
|
||
# Reduce the image size | ||
RUN apt-get autoremove -y | ||
|
@@ -112,9 +108,9 @@ WORKDIR /grassdb | |
VOLUME /grassdb | ||
|
||
# Copy actinia config file and start scripts | ||
COPY actinia.cfg /etc/default/actinia | ||
COPY start.sh /src/start.sh | ||
COPY start-dev.sh /src/start-dev.sh | ||
COPY docker/actinia-core/actinia.cfg /etc/default/actinia | ||
COPY docker/actinia-core/start.sh /src/start.sh | ||
COPY docker/actinia-core/start-dev.sh /src/start-dev.sh | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
CMD ["/src/start.sh"] | ||
|
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
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
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
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
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
Oops, something went wrong.