Allow to optionally choose PostGIS enabled image - #38
Open
hvwaldow wants to merge 1 commit into
Open
Conversation
Member
|
Postgis was removed. I agree, it's a good idea to add a easy way to add this when required. |
|
@hvwaldow have you had good experiences with installing the spatial extension itself? I couldn't get shapely installed on the Alpine image. It keeps complaining that it can't find the geos libraries, even if I point the environment variable GEOS_CONFIG to /usr/bin/geos-config. Would be interested in the Docker recipe for that. Haven't found anything useful on stackoverflow. I tried: FROM openknowledge/ckan-dev:2.8
# Set timezone
ARG TZ
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime
RUN echo $TZ > /etc/timezone
RUN echo "http://mirror.leaseweb.com/alpine/edge/community" >> /etc/apk/repositories
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk add --virtual .build-deps \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community \
--repository http://dl-cdn.alpinelinux.org/alpine/edge/main \
gcc libc-dev geos-dev geos && \
runDeps="$(scanelf --needed --nobanner --recursive /usr/local \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| xargs -r apk info --installed \
| sort -u)" && \
apk add --virtual .rundeps
RUN geos-config --cflags
RUN which geos-config
RUN GEOS_CONFIG=/usr/bin/geos-config pip install shapely
RUN pip install -e git+https://github.com/ckan/ckanext-spatial.git#egg=ckanext-spatial && \
pip install -r https://raw.githubusercontent.com/ckan/ckanext-spatial/master/pip-requirements.txt |
ccancellieri
pushed a commit
to ccancellieri/docker-ckan
that referenced
this pull request
Aug 31, 2023
Update README to include essential information from old docs
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We need PostGIS for ckanext-spatial.
Also: replaced deprecated option
linkswithdepends_onindocker-compose[.dev].yml