You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
services:
database:
image: sath89/oracle-12c:r1healthcheck:
test: ["CMD-SHELL", "if [ \"`echo \\\"SELECT ACCOUNT_STATUS FROM DBA_USERS WHERE USERNAME = 'ANONYMOUS' AND ACCOUNT_STATUS = 'EXPIRED';\\\"|/u01/app/oracle/product/12.1.0/xe/bin/sqlplus -S sys/oracle as sysdba|grep ACCOUNT_STATUS`\" = \"ACCOUNT_STATUS\" ];then true;else false;fi"]timeout: 3sinterval: 30s# start_period: 900sretries: 30
"start_period" is commented out because docker/cli#475 has been merged but not released yet so compose doesn't support it (yet). "interval" and "retries" can be modified.
The text was updated successfully, but these errors were encountered:
@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 docker/cli#475 has been merged but not released yet so compose doesn't support it (yet). "interval" and "retries" can be modified.
The text was updated successfully, but these errors were encountered: