containers icon indicating copy to clipboard operation
containers copied to clipboard

[bitnami/postgresql-repmgr] Support running scripts on primary node when container starts

Open sawntoe opened this issue 7 months ago • 3 comments

Revival of #70737

Description of the change

This adds the ability to run scripts on startup always, a feature that is present in other containers such as mariadb with the /docker-entrypoint-startdb.d endpoint

Benefits

It is currently a huge pain in the behind to run scripts at startup everytime the container starts, requiring an undocumented change to the entrypoint for which there is no information anywhere

Applicable issues

  • fixes #70606

sawntoe avatar Jun 07 '25 22:06 sawntoe

Hi @fmulero, so sorry, I am unable to see any comments on the code, may I ask if its still a draft? Thanks so much!

sawntoe avatar Jun 09 '25 14:06 sawntoe

Hi, so sorry for the holdup, i've been quite busy. Just a question regarding the handling of scripts: Should preinit be added to the custom scripts function or should that be a seperate PR?

sawntoe avatar Jun 11 '25 16:06 sawntoe

Hi, so sorry for the holdup, i've been quite busy. Just a question regarding the handling of scripts: Should preinit be added to the custom scripts function or should that be a seperate PR?

Good question. I think that could be done in a different PR, that function only supports sh files.

fmulero avatar Jun 18 '25 14:06 fmulero

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

github-actions[bot] avatar Jul 04 '25 01:07 github-actions[bot]

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Pull Request. Do not hesitate to reopen it later if necessary.

github-actions[bot] avatar Jul 09 '25 01:07 github-actions[bot]