mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-26 07:39:58 +00:00
## Problem We don't currently run tests for PostGIS in our test environment. ## Summary of Changes - Added PostGIS test support for PostgreSQL v16 and v17 - Configured different PostGIS versions based on PostgreSQL version: - PostgreSQL v17: PostGIS 3.5.0 - PostgreSQL v14/v15/v16: PostGIS 3.3.3 - Added necessary test scripts and configurations This ensures our PostgreSQL implementation remains compatible with this widely-used extension. --------- Co-authored-by: Alexander Bayandin <alexander@neon.tech> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
19 lines
593 B
Docker
19 lines
593 B
Docker
ARG REPOSITORY=ghcr.io/neondatabase
|
|
ARG COMPUTE_IMAGE=compute-node-v14
|
|
ARG TAG=latest
|
|
|
|
FROM $REPOSITORY/${COMPUTE_IMAGE}:$TAG
|
|
|
|
ARG COMPUTE_IMAGE
|
|
|
|
USER root
|
|
RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries && \
|
|
apt-get update && \
|
|
apt-get install -y curl \
|
|
jq \
|
|
netcat-openbsd
|
|
#This is required for the pg_hintplan test
|
|
RUN mkdir -p /ext-src/pg_hint_plan-src /postgres/contrib/file_fdw /ext-src/postgis-src/ && chown postgres /ext-src/pg_hint_plan-src /postgres/contrib/file_fdw /ext-src/postgis-src
|
|
|
|
USER postgres
|