Closed snowzach closed 4 years ago
I would prefer to do this with a docker healthcheck.
The following command will run a basic detection of a 1 pixel image and return a status code:
echo "{\"detector_name\":\"edgetpu\", \"data\":\"Qk06AAAAAAAAADYAAAAoAAAAAQAAAAEAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA/////w==\"}" | curl -d@- -f http://localhost:8080/detect
I need to change some of the return values inside of doods for this to work. Opening an issue to track.
This should work now. Doods should exit out.
I would prefer to do this with a docker healthcheck.
The following command will run a basic detection of a 1 pixel image and return a status code:
echo "{\"detector_name\":\"edgetpu\", \"data\":\"Qk06AAAAAAAAADYAAAAoAAAAAQAAAAEAAAABABgAAAAAAAAAAADEDgAAxA4AAAAAAAAAAAAA/////w==\"}" | curl -d@- -f http://localhost:8080/detect
I need to change some of the return values inside of doods for this to work. Opening an issue to track.