TwitchDownloader/dockerstart.bat

27 lines
577 B
Batchfile
Raw Normal View History

@echo off
setlocal
set NVIDIA_COMPOSE=
if /I "%~1"=="--nvidia" (
set NVIDIA_COMPOSE=-f docker-compose.nvidia.yml
shift
)
if "%~1"=="" (
echo Usage: .\dockerstart.bat [--nvidia] streamer [additional args]
exit /b 1
)
set STREAMER=%~1
shift
set EXTRA_ARGS=
:collect_args
if "%~1"=="" goto run_compose
set EXTRA_ARGS=%EXTRA_ARGS% %~1
shift
goto collect_args
:run_compose
docker compose --env-file .env.development -f docker-compose.yml -f docker-compose.override.yml %NVIDIA_COMPOSE% run --rm twitch-archive python twitch-archive.py -u %STREAMER%%EXTRA_ARGS%