<p style="white-space: pre-wrap; word-wrap: break-word;">Right now I'm not successful in getting postgresql to run inside docker (container based on Fedora 28).  I tried the following to initialize the server:</p><p style="white-space: pre-wrap; word-wrap: break-word;"># runuser -u postgres -- env PGDATA=/var/lib/pgsql/data/ postgresql-setup --initdb<br>System has not been booted with systemd as init system (PID 1). Can't operate.<br>System has not been booted with systemd as init system (PID 1). Can't operate.<br>FATAL: no db datadir (PGDATA) configured for 'postgresql.service' unit</p><p style="white-space: pre-wrap; word-wrap: break-word;"># runuser -u postgres -- /usr/bin/postmaster -D /var/lib/pgsql/data/<br>postmaster: could not access the server configuration file "/var/lib/pgsql/data/postgresql.conf": No such file or directory</p><p><a href="https://gerrit.asterisk.org/9652">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/9652/1/tests/CI/setupRealtime.sh">File tests/CI/setupRealtime.sh:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9652/1/tests/CI/setupRealtime.sh@11">Patch Set #1, Line 11:</a> <code style="font-family:monospace,monospace">if [ -z "$POSTGRES_PID" ] ; then</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe an argument to enable scripted start and stop?  That way teardownRealtime.sh would know to run /usr/local/bin/postgresql-stop?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/9652">change 9652</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9652"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I352333233bab5377723bf37d490ba84fc55bc853 </div>
<div style="display:none"> Gerrit-Change-Number: 9652 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 24 Jul 2018 20:04:41 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>