From: | Mike Dillon <mike(at)embody(dot)org> |
---|---|
To: | James Lorenzen <jameslorenzen(at)gmail(dot)com> |
Cc: | pgsql-pkg-docker(at)postgresql(dot)org |
Subject: | Re: Post Startup hooks |
Date: | 2015-09-04 14:52:45 |
Message-ID: | CAG077fBsksy3Zo1p4k+ydEmqj=SSdgV9LwDMQkUHkA6WbHT_-Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-pkg-docker |
It's probably best to raise this as an issue in the docker-library/postgres
repo on GitHub in that case, along with a description of the commands you
need to run.
-md
On Fri, Sep 4, 2015 at 7:50 AM, James Lorenzen <jameslorenzen(at)gmail(dot)com>
wrote:
> Yeah I'm using a recent version. I'm able to run `psql` commands in my
> script under /docker-entrypoint-initdb.d, but I need to run some other
> commands that need to connect via TCP/IP.
>
> On Fri, Sep 4, 2015 at 9:46 AM, Mike Dillon <mike(at)embody(dot)org> wrote:
>
>> Are you using a recent version of the image? Scripts executed from
>> /docker-entrypoint-initdb.d have been executed against a running Postgres
>> server since this PR <https://github.com/docker-library/postgres/pull/75> was
>> merged in July. Previous to that, the entrypoint scripts were expected to
>> use "postgres --single", but that was determined to be broken for certain
>> use cases and the Postgres maintainers aren't interested in fixing it (see
>> the discussion here
>> <http://www.postgresql.org/message-id/20150126124133.19763.60605@wrigleys.postgresql.org>
>> ).
>>
>> -md
>>
>> On Thu, Sep 3, 2015 at 7:53 PM, James Lorenzen <jameslorenzen(at)gmail(dot)com>
>> wrote:
>>
>>> Would it be possible for the postgres docker image to support some post
>>> startup hooks? Seems like this would be a useful feature. I'm needing to
>>> perform some actions that require postgres to be started but that doesn't
>>> seem possible currently. Everything placed in `/docker-entrypoint-initdb.d`
>>> runs before postgres is started.
>>>
>>> Thanks,
>>> James Lorenzen
>>>
>>
>>
>
From | Date | Subject | |
---|---|---|---|
Next Message | James Lorenzen | 2015-09-04 14:53:25 | Re: Post Startup hooks |
Previous Message | James Lorenzen | 2015-09-04 14:50:04 | Re: Post Startup hooks |