Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade to Shapely 1.7.1 #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ MAINTAINER Tim Sutton<[email protected]>

#-------------Application Specific Stuff ----------------------------------------------------
ARG MAPPROXY_VERSION=''
ARG SHAPELY_VERSION='==1.7.1'
ARG RIAK_VERSION='==2.4.2'

#TODO 20231023 Shapely needs a downgrade to 1.7.1 because Shapely 2.0 changes the way multigeometries are iterated
# This should be reverted as soon as people at Mapproxy solve the issue. See:
# https://github.com/kartoza/docker-mapproxy/issues/63
# https://github.com/mapproxy/mapproxy/issues/611
# https://github.com/mapproxy/mapproxy/pull/749/files
#As an alternative, you can leave "ARG SHAPELY_VERSION=''" and use:
# docker build --build-arg SHAPELY_VERSION="==1.7.1" . -t kartoza/mapproxy:latest

RUN apt-get -y update && \
apt-get install -y \
Expand All @@ -21,10 +31,10 @@ RUN apt-get -y update && \
python3-virtualenv \
figlet \
gosu awscli; \
# verify that the binary works
gosu nobody true
RUN pip3 --disable-pip-version-check install Shapely Pillow MapProxy${MAPPROXY_VERSION} uwsgi pyproj boto3 s3cmd \
requests riak==2.4.2 redis numpy
# verify that the binary works
gosu nobody true
RUN pip3 --disable-pip-version-check install Shapely${SHAPELY_VERSION} Pillow MapProxy${MAPPROXY_VERSION} uwsgi pyproj boto3 s3cmd \
requests riak${RIAK_VERSION} redis numpy

RUN ln -s /usr/lib/libgdal.a /usr/lib/liblibgdal.a

Expand Down