fix container healthcheck false negative and register endpoints tables
curl --fail exited nonzero on the login probe's 400 before the body reached grep VALIDATION_ERROR, so the healthcheck always failed and the container reported unhealthy while the app was fine. Drop --fail so grep decides pass/fail. Also register endpoint tables in PLUGIN_TABLE_OWNERS so plugin migrations can resolve their owned metadata.
This commit is contained in:
@@ -92,7 +92,7 @@ USER shopdb
|
|||||||
EXPOSE 5001
|
EXPOSE 5001
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||||
CMD curl --fail --silent http://localhost:5001/api/auth/login -X POST \
|
CMD curl --silent http://localhost:5001/api/auth/login -X POST \
|
||||||
-H "Content-Type: application/json" -d '{}' \
|
-H "Content-Type: application/json" -d '{}' \
|
||||||
| grep -q "VALIDATION_ERROR" || exit 1
|
| grep -q "VALIDATION_ERROR" || exit 1
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ PLUGIN_TABLE_OWNERS: dict[str, Iterable[str]] = {
|
|||||||
'computers': ('computertypes', 'computers', 'computerinstalledapps',
|
'computers': ('computertypes', 'computers', 'computerinstalledapps',
|
||||||
'accessprotocols', 'computeraccess'),
|
'accessprotocols', 'computeraccess'),
|
||||||
'employees': ('directoryemployees',),
|
'employees': ('directoryemployees',),
|
||||||
|
'endpoints': ('endpointstates', 'endpointevents'),
|
||||||
'geenforce': ('manifestscopes', 'manifestentries', 'manifestentrypctypes',
|
'geenforce': ('manifestscopes', 'manifestentries', 'manifestentrypctypes',
|
||||||
'manifestentryhostnames', 'manifestentrymachinenumbers',
|
'manifestentryhostnames', 'manifestentrymachinenumbers',
|
||||||
'manifestinusechecks', 'manifestinusecheckprocesses',
|
'manifestinusechecks', 'manifestinusecheckprocesses',
|
||||||
|
|||||||
Reference in New Issue
Block a user