Skip to content

Confirm a container is ready to run after init #326

Closed
@bizmate

Description

@bizmate

Hi folks,
the innit process is great to just do exactly what it promises and it runs only the first time the data created as the rule is to check if a file was already created before running init to make sure it is ok

ie

echo 'PostgreSQL init process complete; ready for start up.'

In my local processes for development I tend to use docker compose and unless i want a custom check to verify that a container is running i then listed to logs for a specific sentence. For instace for an apache container i check that this has run
[Tue Aug 15 12:57:35.380606 2017] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

If the init is running in the postgres container i can wait for
PostgreSQL init process complete; ready for start up.

Any objection to run an else condition to echo
PostgreSQL init process skipped; ready for start up.

I can create a PR but wanted to check with you before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions