Skip to content

PostgreSQL/PostGIS format not supported in OGR installed in postgis/alpine image #391

Answered by ImreSamu
davidlec asked this question in Q&A
Discussion options

You must be logged in to vote

Maybe you can extend the postgis/postgis:16-3.4-alpine image.
like:

FROM  postgis/postgis:16-3.4-alpine
RUN apk search --no-cache  gdal*
RUN apk add --no-cache  gdal-driver-all gdal-tools

test:

$ docker run -it --rm postgis:16-3.4-alpine-full-gdal sh -c  "ogrinfo --formats | grep Post"
  PostgreSQL -vector- (rw+): PostgreSQL/PostGIS
  PGDUMP -vector- (w+v): PostgreSQL SQL dump (*.sql)

Or you can customize - installing only the important gdal-driver:

$ docker run -it --rm postgis/postgis:16-3.4-alpine sh -c "apk search --no-cache  gdal*"
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@davidlec
Comment options

Comment options

You must be logged in to vote
1 reply
@davidlec
Comment options

Answer selected by davidlec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants