The cluster PG image built FROM postgres:16 resolved to Debian trixie, whose postgresql-16-postgis-3 (3.7.0+pgdg13) cannot load against PG 16.15: 'undefined symbol: heap_datum_check'. CREATE EXTENSION postgis crashed the server and crashlooped osint-app/osint-camera-service. Rebuild pinned to postgres:16-bookworm (+pgdg12), verified CREATE EXTENSION postgis + timescaledb + create_hypertable() by hand before re-tagging. nats: pass -m 8222 so the monitoring/healthz endpoint the readiness probe hits actually listens. Also documents the stack + build/push/secret steps in apps/base/osint/README.md.
22 lines
1.2 KiB
Docker
22 lines
1.2 KiB
Docker
# Cluster build of the OSINT Postgres image (amd64).
|
|
#
|
|
# Identical to `Dockerfile.pg` in sirius/osint-dashboard EXCEPT the base image
|
|
# is pinned to bookworm. The upstream `FROM postgres:16` now resolves to Debian
|
|
# trixie, where postgresql-16-postgis-3 (3.7.0+pgdg13) fails to load against
|
|
# PostgreSQL 16.15:
|
|
# could not load library "/usr/lib/postgresql/16/lib/postgis-3.so":
|
|
# undefined symbol: heap_datum_check
|
|
# On bookworm (+pgdg12) both extensions load and create_hypertable() works.
|
|
FROM postgres:16-bookworm
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates curl gnupg lsb-release && \
|
|
curl -fsSL https://packagecloud.io/install/repositories/timescale/timescaledb/script.deb.sh | bash && \
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
postgresql-16-postgis-3 timescaledb-2-postgresql-16 && \
|
|
mkdir -p /etc/postgresql/16/main/conf.d && \
|
|
echo "shared_preload_libraries = 'timescaledb'" > /etc/postgresql/16/main/conf.d/timescaledb.conf && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# The official postgres entrypoint remains the CMD and handles
|
|
# POSTGRES_USER / POSTGRES_DB / POSTGRES_PASSWORD and pg_hba setup.
|