Create on boarding docker
[sdc.git] / catalog-be / sdc-backend / chef-repo / cookbooks / sdc-catalog-be / templates / default / ready-probe.sh.erb
1 #!/bin/bash
2
3 health_Check_http_code=$(curl --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/sdc2/rest/healthCheck)
4 if [[ "$health_Check_http_code" -eq 200 ]]; then
5    exit 0
6 else
7    exit $health_Check_http_code
8 fi
9
10
11