Skip to content

Commit

Permalink
Try and fix deployment error by installing the same dependencies spec…
Browse files Browse the repository at this point in the history
…ified in the Dockerfile

Error:

024-04-09T09:19:02.880013795Z django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal", "GDAL", "gdal3.7.0", "gdal3.6.0", "gdal3.5.0", "gdal3.4.0", "gdal3.3.0", "gdal3.2.0", "gdal3.1.0", "gdal3.0.0", "gdal2.4.0"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

We should probably consider using app service with containers to avoid duplicating the list of libraries to install. I'm just interested to see if this works
  • Loading branch information
mbarton committed Apr 9, 2024
1 parent 5363ede commit 38530b9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appsvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pre-build: >
apt-get install -y binutils libproj-dev gdal-bin
libgdal-dev python3-gdal
libz-dev libjpeg-dev libfreetype6-dev
git python3-cffi python3-brotli
libpango-1.0-0 libpangoft2-1.0-0
--no-install-recommends

0 comments on commit 38530b9

Please sign in to comment.