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.
11 lines
355 B
Bash
Executable File
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
|