Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #984 from yverdon/feature/change_base_image_gdal_3…
Browse files Browse the repository at this point in the history
….8.3

change base image, use gdal from gchr
  • Loading branch information
AlexandreJunod authored May 29, 2024
2 parents 077ba08 + 7022fad commit 7e8928a
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 6 deletions.
29 changes: 28 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,31 @@
FROM sitdocker/geocity-base:v2.1.5
FROM ghcr.io/osgeo/gdal:ubuntu-small-3.8.3

RUN apt-get -y update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-missing \
--no-install-recommends \
build-essential \
gettext \
python3-pip \
libcairo2-dev \
poppler-utils \
python3-dev \
python3-setuptools \
python3-wheel \
python3-cffi \
libcairo2 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libgdk-pixbuf2.0-0 \
libffi-dev \
shared-mime-info \
tzdata \
&& ln -fs /usr/share/zoneinfo/Europe/Zurich /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata

# Update C env vars so compiler can find gdal
ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
ENV C_INCLUDE_PATH=/usr/include/gdal
ENV PYTHONUNBUFFERED 1

ARG ENV

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ volumes:

services:
web: # Name of this container should not be changed
image: gms_web
image: geocity
restart: unless-stopped
build:
context: ./
args:
ENV: PROD
depends_on:
- statics_builder
entrypoint: /code/entrypoint.sh
# entrypoint: /code/entrypoint.sh
command: "gunicorn geocity.wsgi -b :9000 --error-logfile gunicorn_log.log --workers=2 --threads=4 --worker-class=gthread"
volumes:
- ${PRIVATE_DOCUMENTS_DIR}:/private_documents
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ django-tables2
django-tables2-column-shifter
# Base docker image must be update when GDAL is updated
# https://github.com/yverdon/docker-geocity/
gdal==3.6.3
gdal==3.8.3
gunicorn
html5lib
jdcal
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ et-xmlfile==1.1.0
# via openpyxl
filetype==1.2.0
# via -r requirements.in
gdal==3.6.3
gdal==3.8.3
# via -r requirements.in
gunicorn==22.0.0
# via -r requirements.in
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ filetype==1.2.0
# via -r requirements.txt
freezegun==1.4.0
# via -r requirements_dev.in
gdal==3.6.3
gdal==3.8.3
# via -r requirements.txt
gunicorn==22.0.0
# via -r requirements.txt
Expand Down

0 comments on commit 7e8928a

Please sign in to comment.