-
Notifications
You must be signed in to change notification settings - Fork 0
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 #22 from kartoza/feat-spw
Feat SPW model integration
- Loading branch information
Showing
42 changed files
with
2,726 additions
and
97 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,6 @@ pdbpp | |
responses | ||
mock==4.0.3 | ||
|
||
pytest-django | ||
pytest-django | ||
# mock requests | ||
requests-mock |
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,42 @@ | ||
FROM rstudio/plumber:v1.2.0 AS prod | ||
|
||
# install python 3.10 | ||
RUN apt-get update -y && apt-get upgrade -y | ||
|
||
RUN apt install software-properties-common -y | ||
|
||
RUN add-apt-repository ppa:deadsnakes/ppa | ||
|
||
RUN apt install Python3.10 | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
gcc gettext cron \ | ||
spatialite-bin libsqlite3-mod-spatialite \ | ||
python3-dev python3-gdal python3-psycopg2 python3-ldap \ | ||
python3-pip python3-pil python3-lxml python3-pylibmc \ | ||
uwsgi uwsgi-plugin-python3 \ | ||
libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev | ||
|
||
# install R packages | ||
RUN install2.r --error tidyverse tidygam mgcv ggpubr classInt zoo | ||
|
||
# Install pip packages | ||
ADD deployment/docker/requirements.txt /requirements.txt | ||
RUN pip3 install --upgrade pip && pip install --upgrade pip | ||
# Fix uwsgi build failure missing cc1 | ||
ARG CPUCOUNT=1 | ||
RUN pip3 install -r /requirements.txt | ||
|
||
# add django project | ||
ADD django_project /home/web/django_project | ||
|
||
# create directories | ||
RUN mkdir -p /home/web/plumber_data/ | ||
|
||
# add entrypoint.sh | ||
ADD django_project/plumber_entrypoint.sh /home/web/plumber_entrypoint.sh | ||
|
||
EXPOSE 8181 | ||
|
||
WORKDIR /home/web/django_project | ||
ENTRYPOINT [ "/home/web/plumber_entrypoint.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,8 @@ | |
'core', | ||
'frontend', | ||
'gap', | ||
'gap_api' | ||
'gap_api', | ||
'spw' | ||
) | ||
|
||
TEMPLATES[0]['DIRS'] += [ | ||
|
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 |
---|---|---|
|
@@ -30,7 +30,6 @@ | |
) | ||
|
||
|
||
|
||
class CBAMNetCDFReader(BaseNetCDFReader): | ||
"""Class to read NetCDF file from CBAM provider.""" | ||
|
||
|
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.