docs: Add 24 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 48s

This commit is contained in:
Your Name
2025-09-22 23:57:38 +12:00
parent e27df71cd2
commit 2222a77070
12 changed files with 826 additions and 0 deletions

23
squashthumbnailmaker/install.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
source "${AGENT_PATH}/common.sh"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Check required environment variables
_check_required_env_vars "CONTAINER_NAME" "IMAGE_REGISTRY" "IMAGE_REPO" "IMAGE_TAG"
# Check Docker is available
_check_docker_installed || _die "Docker test failed"
echo "Building squashthumbnailmaker Docker image..."
# Build the Docker image locally
cd "$SCRIPT_DIR"
docker build -t "${CONTAINER_NAME}_image:latest" . || _die "Failed to build Docker image"
echo "Installation of ${CONTAINER_NAME} complete"
echo ""
echo "Usage:"
echo " Process single video: docker run --rm -v /path/to/videos:/data ${CONTAINER_NAME}_image:latest /data/video.mp4"
echo " Process entire directory: docker run --rm -v /path/to/videos:/data ${CONTAINER_NAME}_image:latest /data"
echo ""
echo "The thumbnail will be created as video.jpg in the same directory as the video file."