docs: Add 24 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 48s
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 48s
This commit is contained in:
14
squashthumbnailmaker/logs.sh
Executable file
14
squashthumbnailmaker/logs.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
source "${AGENT_PATH}/common.sh"
|
||||
_check_required_env_vars "CONTAINER_NAME"
|
||||
|
||||
# Show logs from any containers running with this image
|
||||
containers=$(docker ps -a --filter "ancestor=${CONTAINER_NAME}_image:latest" --format "{{.ID}}")
|
||||
if [ -n "$containers" ]; then
|
||||
for container in $containers; do
|
||||
echo "=== Logs from container $container ==="
|
||||
docker logs "$container" "$@"
|
||||
done
|
||||
else
|
||||
echo "No containers found for ${CONTAINER_NAME}"
|
||||
fi
|
Reference in New Issue
Block a user