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:
23
squashthumbnailmaker/install.sh
Executable file
23
squashthumbnailmaker/install.sh
Executable 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."
|
Reference in New Issue
Block a user