mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Generalises the postgres image build to be driven by a declarative extension→library registry instead of a hardcoded POSTGRES_VECTOR_ENABLED flag. Same Dockerfile.j2 now serves both the central svc-db-postgres image (libraries aggregated across all deployed consumers) and per- consumer images for shared:false postgres consumers whose extensions need libraries not in the postgis/postgis base (e.g. pgvector). postgres.yml.j2 switches between image: and build: based on whether custom libraries are needed. New postgres_libraries lookup filters base-image extensions out and returns recipes for the rest. Dedicated task path extracted into dedicated.yml + dedicated_postgres.yml so the block-with-when size limit stays satisfied and the postgres-type check happens once. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9 lines
585 B
YAML
9 lines
585 B
YAML
---
|
|
_container_env_dir: "{{ lookup('container', application_id, 'directories.env') }}"
|
|
_database_env: "{{ lookup('database', _database_consumer_id, 'env') }}"
|
|
_database_type: "{{ lookup('database', _database_consumer_id, 'type') }}"
|
|
_database_initdb_dir: "{{ lookup('database', _database_consumer_id, 'initdb_dir') }}"
|
|
_database_build_dir: "{{ lookup('database', _database_consumer_id, 'build_dir') }}"
|
|
_database_extensions: "{{ lookup('service_extensions', 'postgres').get(_database_consumer_id, []) }}"
|
|
_database_libraries: "{{ lookup('postgres_libraries', _database_extensions) }}"
|