Skip to content

Commit a055152

Browse files
authored
Merge pull request #278 from SUSE/postgres-healthcheck
Add HEALTCHECK to the postgresql containers
2 parents 91f5385 + b21fb91 commit a055152

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/bci_build/package.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,8 @@ def _create_php_bci(
18411841
sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql{ver}/postgresql.conf.sample
18421842
18431843
STOPSIGNAL SIGINT
1844+
HEALTHCHECK --interval=10s --start-period=10s --timeout=5s \
1845+
CMD pg_isready -U ${{POSTGRES_USER:-postgres}} -h localhost -p 5432
18441846
""",
18451847
)
18461848
for ver, os_version in product(

0 commit comments

Comments
 (0)