Martin Mágr 57747becde Add healthcheck script for Gnocchi API
This patch adds script for docker health check of Gnocchi API service.
The script checks API service using curl.

Change-Id: I010e3e4cc7eca59c5c5b8739e2ce145d4dc8a3f1
2018-02-19 13:31:48 +00:00

7 lines
197 B
Bash

#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-gnocchi_wsgi.conf)
healthcheck_curl ${check_url}