[Asterisk-code-review] CI: Add options to initialize and cleanup database to runTes... (asterisk[master])

Corey Farrell asteriskteam at digium.com
Tue Jul 24 15:04:41 CDT 2018


Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/9652 )

Change subject: CI: Add options to initialize and cleanup database to runTestsuite.sh
......................................................................


Patch Set 1:

(1 comment)

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:

# runuser -u postgres -- env PGDATA=/var/lib/pgsql/data/ postgresql-setup --initdb
System has not been booted with systemd as init system (PID 1). Can't operate.
System has not been booted with systemd as init system (PID 1). Can't operate.
FATAL: no db datadir (PGDATA) configured for 'postgresql.service' unit

# runuser -u postgres -- /usr/bin/postmaster -D /var/lib/pgsql/data/
postmaster: could not access the server configuration file "/var/lib/pgsql/data/postgresql.conf": No such file or directory

https://gerrit.asterisk.org/#/c/9652/1/tests/CI/setupRealtime.sh
File tests/CI/setupRealtime.sh:

https://gerrit.asterisk.org/#/c/9652/1/tests/CI/setupRealtime.sh@11
PS1, Line 11: if [ -z "$POSTGRES_PID" ] ; then
Maybe an argument to enable scripted start and stop?  That way teardownRealtime.sh would know to run /usr/local/bin/postgresql-stop?



-- 
To view, visit https://gerrit.asterisk.org/9652
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I352333233bab5377723bf37d490ba84fc55bc853
Gerrit-Change-Number: 9652
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Comment-Date: Tue, 24 Jul 2018 20:04:41 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180724/5fa5e44c/attachment.html>


More information about the asterisk-code-review mailing list