Skip to content

is it possible to wait until database is prepared on first startup? #2338

Closed
@AlBundy33

Description

@AlBundy33

we're using the docker image for nightly tests and therefore we recreate the container each night.

currently we're creating the container with docker run -d ....
after that we user docker logs together with grep to wait until the output appears that the database is ready.

is there maybe some command/script inside the container that waits until the database is ready?
something like docker exec -it oracle /foo/bar/wait_until_database_is_ready.sh

or is it possible to start the container and exit after initialization tomdo a first start with docker run (without -d), wait until the first startup is done and finally start the container with docker start.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions