pg_orrery/docker/020_install_pg_orbit.sh
Ryan Malloy 07bc4e47c6 Add Docker packaging for pg_orbit extension
Three-stage Dockerfile: Ubuntu 22.04 builder (glibc-matched to
TimescaleDB-HA), scratch artifact image (~748KB), and standalone
postgres:17 image. All 6 regression suites run during build.
Makefile gains docker-build, docker-push, and docker-test targets.
2026-02-16 00:16:16 -07:00

11 lines
355 B
Bash
Executable File

#!/bin/bash
set -e
# Create the pg_orbit extension on first container startup.
# The 020_ prefix orders this after TimescaleDB's own init scripts
# (000_, 001_, 010_) when used in timescaledb-ha images.
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "${POSTGRES_DB:-postgres}" <<-'EOSQL'
CREATE EXTENSION IF NOT EXISTS pg_orbit;
EOSQL