Add interactivity by CLI

This commit is contained in:
adampweb 2025-04-06 17:02:39 +02:00
parent b1080f0219
commit 5aebf83fca
2 changed files with 13 additions and 1 deletions

View File

@ -5,6 +5,9 @@ services:
tty: true
image: wayback_machine_downloader:latest
container_name: wayback_machine_downloader
environment:
- ENVIRONMENT=${ENVIRONMENT}
volumes:
- .:/build:rw
- ./websites:/build/websites:rw
- ./websites:/build/websites:rw
command: --directory /build/websites ${OPTIONS} ${TARGET_URL}

9
entrypoint.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if [ "$ENVIRONMENT" == "development" ]; then
echo "Running in development mode. Starting rerun..."
exec rerun --dir /build --ignore "websites/*" -- /build/bin/wayback_machine_downloader "$@"
else
echo "Not in development mode. Skipping rerun."
exec /build/bin/wayback_machine_downloader "$@"
fi