mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 09:46:05 +00:00
Add interactivity by CLI
This commit is contained in:
parent
b1080f0219
commit
5aebf83fca
@ -5,6 +5,9 @@ services:
|
|||||||
tty: true
|
tty: true
|
||||||
image: wayback_machine_downloader:latest
|
image: wayback_machine_downloader:latest
|
||||||
container_name: wayback_machine_downloader
|
container_name: wayback_machine_downloader
|
||||||
|
environment:
|
||||||
|
- ENVIRONMENT=${ENVIRONMENT}
|
||||||
volumes:
|
volumes:
|
||||||
- .:/build:rw
|
- .:/build:rw
|
||||||
- ./websites:/build/websites:rw
|
- ./websites:/build/websites:rw
|
||||||
|
command: --directory /build/websites ${OPTIONS} ${TARGET_URL}
|
||||||
9
entrypoint.sh
Normal file
9
entrypoint.sh
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user