
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 40s
11 lines
354 B
Bash
Executable File
11 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
source "${AGENT_PATH}/common.sh"
|
|
_check_required_env_vars "CONTAINER_NAME"
|
|
|
|
if docker ps | grep -q "${CONTAINER_NAME}_grafana"; then
|
|
echo "Running"
|
|
echo " Grafana: http://$(hostname -I | awk '{print $1}'):${WEB_PORT:-3000}"
|
|
docker ps --format "table {{.Names}}\t{{.Status}}" | grep "${CONTAINER_NAME}_"
|
|
else
|
|
echo "Stopped"
|
|
fi |