Merge "Add the healthcheck_rabbitmq script to rabbitmq images"
This commit is contained in:
commit
c7dc1f7714
@ -40,6 +40,15 @@ RUN rm -rf /var/lib/rabbitmq/* \
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% if docker_healthchecks %}
|
||||
{% block healthcheck_installation %}
|
||||
|
||||
COPY healthcheck_rabbitmq /usr/local/bin/healthcheck_rabbitmq
|
||||
RUN chmod 755 /usr/local/bin/healthcheck_rabbitmq
|
||||
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
|
10
docker/rabbitmq/healthcheck_rabbitmq
Normal file
10
docker/rabbitmq/healthcheck_rabbitmq
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
rabbitmq-diagnostics -q ping || exit 1
|
||||
rabbitmq-diagnostics -q status || exit 1
|
||||
rabbitmq-diagnostics -q check_running || exit 1
|
||||
rabbitmq-diagnostics -q check_local_alarms || exit 1
|
||||
rabbitmq-diagnostics -q check_port_connectivity || exit 1
|
||||
rabbitmq-diagnostics -q check_virtual_hosts || exit 1
|
Loading…
x
Reference in New Issue
Block a user