geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
504 stars 265 forks source link

fix Docker build #463

Closed tomkralidis closed 4 years ago

tomkralidis commented 4 years ago

Description Building the local Docker image yields build errors.

Steps to Reproduce docker build -t pygeoapi-docker-test:latest .

Expected behavior Successfully built Docker image

Screenshots/Tracebacks

docker build -t pygeoapi-docker-test:latest .
...
...
Building dependency tree...

Reading state information...

E: Unable to locate package libgdal26

The command '/bin/sh -c apt-get update  && apt-get --no-install-recommends install -y ${DEB_BUILD_DEPS} ${DEB_PACKAGES}     && cp /usr/share/zoneinfo/${TZ} /etc/localtime  && dpkg-reconfigure tzdata  && sed -i -e "s/# ${LOCALE} UTF-8/${LOCALE} UTF-8/" /etc/locale.gen     && dpkg-reconfigure --frontend=noninteractive locales   && update-locale LANG=${LOCALE}     && echo "For ${TZ} date=$(date)" && echo "Locale=$(locale)"     && python3 -m pip install --upgrade pip     && pip3 install ${PIP_PACKAGES}     && cd /pygeoapi     && pip3 install -r requirements.txt     && pip3 install -r requirements-dev.txt     && pip3 install -r requirements-provider.txt    && pip3 install -e .    && mkdir /schemas.opengis.net   && curl -O http://schemas.opengis.net/SCHEMAS_OPENGIS_NET.zip   && unzip ./SCHEMAS_OPENGIS_NET.zip "ogcapi/*" -d /schemas.opengis.net   && pip3 uninstall --yes wheel   && apt-get remove --purge ${DEB_BUILD_DEPS} -y  && apt autoremove -y    && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

The command "docker build -t geopython/pygeoapi:latest ." failed and exited with 100 during .

Environment

Additional context https://travis-ci.org/github/geopython/pygeoapi/jobs/701102983

francbartoli commented 4 years ago

@tomkralidis libgdal26 is no longer available:

root@bff04842ba49:/# apt-get --no-install-recommends install -y libgdal26
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgdal26
root@bff04842ba49:/# apt-cache search gdal
gdal-bin - Geospatial Data Abstraction Library - Utility programs
gdal-data - Geospatial Data Abstraction Library - Data files
libgdal-dev - Geospatial Data Abstraction Library - Development files
libgdal-perl - Perl bindings to the Geospatial Data Abstraction Library
libgdal-perl-doc - Documentation for the GDAL Perl bindings
libgdal27 - Geospatial Data Abstraction Library
python3-gdal - Python 3 bindings to the Geospatial Data Abstraction Library
libgdal-grass - GRASS extension for the GDAL library
libosmium2-dev - C++ framework for working with OSM data files
libotbgdaladapters-7.1-1 - ORFEO Toolbox library - OTBGdalAdapters
libotbiogdal-7.1-1 - ORFEO Toolbox library - OTBIOGDAL
libalgorithms1 - GDAL add-on tools to perform useful raster processing - libalgorithms
libbase1 - GDAL add-on tools to perform useful raster processing - libbase
libfileclasses1 - GDAL add-on tools to perform useful raster processing - libfileClasses
libimageclasses1 - GDAL add-on tools to perform useful raster processing - libimageClasses
pktools - GDAL add-on tools to perform useful raster processing
pktools-dev - GDAL add-on tools to perform useful raster processing - development files
r-cran-rgdal - GNU R bindings for the geospatial data abstraction library
kalxas commented 4 years ago

GDAL 3.1 has landed in Debian Unstable