pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Scalia <jayknowsunix@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Option to make PostgreSQL quiescent on startup?
Date: Fri, 8 Dec 2017 17:14:23 -0500
Message-ID: <021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com> (raw)

Hi all,

I have been trying to get a new Docker container working with PostgreSQL 9.6.6 and I’d like it to start with one of our app’s schemas, but the shell script I’m invoking at the end of the Dockerfile with an ENTRYPOINT doesn’t seem to want to go past the database startup. I think the script isn’t completing due to the output of postgres process. At least, this is my suspicion. Right now, the shell script is only trying to invoke  psql -c “CREATE DATABASE code” after it starts the cluster. If this is the case, is there any option to just quietly start the cluster? If not, is there anyway to make this work?
—
Jay

Sent from my iPad



view thread (2+ messages)  latest in thread

Message-ID: <021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com>
Permalink:  ../021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com/
Also on:    postgresql.org/message-id/021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jayknowsunix@gmail.com
  Subject: Re: Option to make PostgreSQL quiescent on startup?
  In-Reply-To: <021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com>
  References: <021075A8-B171-4CE7-9E45-52347FB2A787@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox