Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix persistence for indexing dbs
Due to an oversight in the volume-mount path, out postgres databases for indexing ABCI events via CometBFT's psql indexer setup were not persisting across node restarts. This was due to the fact that the upstream `postgres` container image declares its own VOLUME at `/var/lib/postgresql/data`, visible here: ❯ podman inspect docker.io/postgres:16-bookworm | jq '.[0].Config.Volumes' { "/var/lib/postgresql/data": {} } which clobbered our manual mount at `/var/lib/postgresql`, a level up. We must override the volume mountpoint in order for the PVC to take precedence over the anonymous volume. Done by adding the fullpath to that exact mount, and then overriding PGDATA to use a subdir therein. Also pins a stable version of the container image tag, so we don't get surprised by postgres jumps. Refs #4526. Will make sure this applies cleanly automatically on preview post-merge, then will update the deployments for currently-running networks. Does not handle historical reingestion; that's tracked separately in #4566.
- Loading branch information