tokenbridge/monitor/scripts/checkDocker.sh
Przemyslaw Rzad 9c8259700b
Add cron schedule to monitor deployment playbook (#161)
* Default cron schedule

* Added cron task

* Docs

* Overwriting log files

* Removed deprecated flag

* Default monitor_cron_schedule.
2019-07-26 15:59:30 +02:00

10 lines
313 B
Bash
Executable File

#!/bin/bash
cd $(dirname $0)/..
if /usr/local/bin/docker-compose ps | grep -q -i 'monitor'; then
# https://github.com/docker/compose/issues/3352
COMPOSE_INTERACTIVE_NO_CLI=1 /usr/local/bin/docker-compose exec -T monitor /bin/bash -c 'yarn check-all'
else
echo "Monitor is not running, skipping checks."
fi