-
-
Notifications
You must be signed in to change notification settings - Fork 966
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 #893 from pierotofy/cogeogdal
Create COGEOs using GDAL
- Loading branch information
Showing
6 changed files
with
533 additions
and
9 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.6-stretch | ||
FROM debian:stretch | ||
MAINTAINER Piero Toffanin <[email protected]> | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
|
@@ -9,17 +9,20 @@ ENV PROJ_LIB=/usr/share/proj | |
RUN mkdir /webodm | ||
WORKDIR /webodm | ||
|
||
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash - | ||
RUN apt-get -qq install -y nodejs | ||
# Install Node.js | ||
RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends wget | ||
RUN wget --no-check-certificate https://deb.nodesource.com/setup_12.x -O /tmp/node.sh && bash /tmp/node.sh | ||
RUN apt-get -qq update && apt-get -qq install -y nodejs | ||
|
||
# Configure use of testing branch of Debian | ||
RUN printf "Package: *\nPin: release a=stable\nPin-Priority: 900\n" > /etc/apt/preferences.d/stable.pref | ||
RUN printf "Package: *\nPin: release a=testing\nPin-Priority: 750\n" > /etc/apt/preferences.d/testing.pref | ||
RUN printf "deb http://ftp.us.debian.org/debian/ stable main contrib non-free\ndeb-src http://ftp.us.debian.org/debian/ stable main contrib non-free" > /etc/apt/sources.list.d/stable.list | ||
RUN printf "deb http://ftp.us.debian.org/debian/ testing main contrib non-free\ndeb-src http://ftp.us.debian.org/debian/ testing main contrib non-free" > /etc/apt/sources.list.d/testing.list | ||
|
||
# Install Node.js GDAL, nginx, letsencrypt, psql | ||
RUN apt-get -qq update && apt-get -qq install -t testing -y binutils libproj-dev gdal-bin nginx certbot grass-core && apt-get -qq install -y gettext-base cron postgresql-client-9.6 | ||
# Install Python3, GDAL, nginx, letsencrypt, psql | ||
RUN apt-get -qq update && apt-get -qq install -t testing -y --no-install-recommends python3 python3-pip git g++ python3-dev libpq-dev binutils libproj-dev gdal-bin python3-gdal nginx certbot grass-core && apt-get -qq install -y --no-install-recommends gettext-base cron postgresql-client-9.6 | ||
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 && update-alternatives --install /usr/bin/python python /usr/bin/python3.8 2 | ||
|
||
# Install pip reqs | ||
ADD requirements.txt /webodm/ | ||
|
@@ -40,6 +43,10 @@ RUN npm install --quiet -g webpack && npm install --quiet -g webpack-cli && npm | |
RUN python manage.py collectstatic --noinput | ||
RUN bash app/scripts/plugin_cleanup.sh && echo "from app.plugins import build_plugins;build_plugins()" | python manage.py shell | ||
|
||
# Cleanup | ||
RUN apt-get remove -y g++ python3-dev libpq-dev && apt-get autoremove -y | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN rm /webodm/webodm/secret_key.py | ||
|
||
VOLUME /webodm/app/media |
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
Empty file.
Oops, something went wrong.