rapidfort/community-images

[Bug]: Missing of the core functionality pg_rewind in the rapidfort/postgresql image

Opened this issue · 0 comments

Name and Version

rapidfort/postgresql:16.3

Which runtime are you using to reproduce this issue?

  • Kubernetes
  • Docker Compose
  • Docker

Is this issue reproducible on the original source image?

Reproducible

Could you please identify the category? Details in TROUBLE_SHOOTING.md

Coverage missing

What steps will reproduce the bug?

  1. Launch a hardened postgresql docker image.
  2. Connect to the container bash shell using terminal.
  3. Now run the pg_rewind command.
  4. The error message as shown is displayed
bash: pg_rewind: command not found

Are you using any custom parameters or values?

While starting the postgres container from the image, I provided the following environment variables:

  • ALLOW_EMPTY_PASSWORD: true

What is the expected behavior?

The pg_rewind command is used to synchronize the data directory of the old primary server with the new primary server.

Example command:

pg_rewind --target-pgdata=/var/lib/postgresql/12/main --source-server="host=new_primary_host port=5432 user=postgres"

What do you see instead?

The following message is displayed

bash: pg_rewind: command not found

Additional information

I used the following images:

  • Bitnami: bitnami/postgresql:16.3.0-debian-12-r6 (amd)
  • Rapidfort: rapidfort/postgresql:16.3