pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Option to make PostgreSQL quiescent on startup? 2+ messages / 2 participants [nested] [flat]
* Option to make PostgreSQL quiescent on startup? @ 2017-12-08 22:14 John Scalia <jayknowsunix@gmail.com> 2017-12-08 22:52 ` Re: Option to make PostgreSQL quiescent on startup? Jorge Torralba <jorge.torralba@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: John Scalia @ 2017-12-08 22:14 UTC (permalink / raw) To: pgsql-admin 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Option to make PostgreSQL quiescent on startup? 2017-12-08 22:14 Option to make PostgreSQL quiescent on startup? John Scalia <jayknowsunix@gmail.com> @ 2017-12-08 22:52 ` Jorge Torralba <jorge.torralba@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Jorge Torralba @ 2017-12-08 22:52 UTC (permalink / raw) To: John Scalia <jayknowsunix@gmail.com>; +Cc: pgsql-admin Does the container stop? Try docker exec -it container /bin/bash and see if you can evaluate there. You can also do docker logs to see what is happening. On Dec 8, 2017 2:14 PM, "John Scalia" <jayknowsunix@gmail.com> wrote: 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-12-08 22:52 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-12-08 22:14 Option to make PostgreSQL quiescent on startup? John Scalia <jayknowsunix@gmail.com> 2017-12-08 22:52 ` Jorge Torralba <jorge.torralba@gmail.com>
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