Add healthcheck script for Panko API

This patch adds script for docker health check of Panko API service.
The script checks API service using curl.

Change-Id: I1109909189b2c14c89913e217e2eb3b520897596
This commit is contained in:
Martin Mágr 2018-01-19 23:55:35 +01:00
parent f69ea9e8af
commit f02c9cbffb
1 changed files with 6 additions and 0 deletions

6
healthcheck/panko-api Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
. ${HEALTHCHECK_SCRIPTS:-/usr/share/openstack-tripleo-common/healthcheck}/common.sh
check_url=$(get_url_from_vhost /etc/httpd/conf.d/10-panko_wsgi.conf)
healthcheck_curl ${check_url}