File size: 397 Bytes
9a03fcf
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Healthcheck script for the OmniSealBench container
# Returns 0 if the app is running, 1 if there's an issue

# Try to access the application's root endpoint
response=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:5000/)

if [ "$response" = "200" ]; then
    # Application is responding correctly
    exit 0
else
    # Application is not responding correctly
    exit 1
fi