docker-oracle-xe-11g icon indicating copy to clipboard operation
docker-oracle-xe-11g copied to clipboard

Log When Listener is Available

Open sskrla opened this issue 10 years ago • 3 comments

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.

sskrla avatar Apr 22 '15 22:04 sskrla

Can you read the Oracle XE log file instead?

wnameless avatar May 04 '15 08:05 wnameless

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

sskrla avatar May 04 '15 18:05 sskrla

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

mrVanDalo avatar Mar 21 '17 12:03 mrVanDalo