wnameless / docker-oracle-xe-11g

Dockerfile of Oracle Database Express Edition 11g Release 2
Apache License 2.0
1.34k stars 800 forks source link

Log When Listener is Available #6

Open sskrla opened 9 years ago

sskrla commented 9 years ago

I am using https://github.com/rhuss/docker-maven-plugin to run some integration tests and it would be fantastic if I could wait on a log message from the container indicating when the Listener is available for connections.

wnameless commented 9 years ago

Can you read the Oracle XE log file instead?

sskrla commented 9 years ago

Unfortunately the only thing I can do is wait an arbitrary amount of time, or for regex to match some console output: https://github.com/rhuss/docker-maven-plugin/blob/master/doc/manual.md

mrVanDalo commented 7 years ago

try the healtcheck feature which is kinda new. Here is my compose config, but it can be run on the commandline aswell.

healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080/apex"]
      interval: 5s 
      timeout: 5s
      retries: 120