Open mgansler opened 7 years ago
This variant seems to work too:
test: echo "select * from v\$database;" | sqlplus -S sys/oracle as sysdba || exit 1
timeout: 3s
interval: 30s
retries: 30
@MaksymBilenko regarding existing comment what do you except with help wanted flag?
I think we could use one of them test and include inside Dockerfile
I have written an application to monitor oracle databases, serving this very purpose. If you need help configuring it please feel free to raise an issue:
It would be nice for the container to have a health status. Here is what I have come up with in compose, but maybe there is a better way and I think it would be great to have the healthcheck included in the image itself.
"start_period" is commented out because https://github.com/docker/cli/pull/475 has been merged but not released yet so compose doesn't support it (yet). "interval" and "retries" can be modified.