mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-04-04 20:27:16 +02:00
Some checks failed
CI / build (push) Has been cancelled
* docs: archive CLI runner scripts and Windows Docker guide, update web runner scripts * docs: overhaul README and DOCKER.md, add 10 user guides - README: Budget Mode section, corrected Further Reading links, theme badge descriptions, diagnostics expansion - DOCKER.md: Windows path note, Budget Mode + Include/Exclude sections, env table additions - docs/user_guides/: 10 new feature guides covering budget mode, include/exclude, locks/replace/permalinks, batch build, theme browser, random build, owned cards, partner mechanics, bracket compliance, quick build & skip controls * fix: map PriceTimeoutError→503, add budget exceptions to status map; update error_handling.md * docs: env var parity — add missing vars to .env.example and README table
36 lines
1.3 KiB
Batchfile
36 lines
1.3 KiB
Batchfile
@echo off
|
|
echo MTG Python Deckbuilder - Docker Hub Runner
|
|
echo ===========================================
|
|
|
|
REM Create directories if they don't exist
|
|
if not exist "deck_files" mkdir deck_files
|
|
if not exist "logs" mkdir logs
|
|
if not exist "csv_files" mkdir csv_files
|
|
if not exist "config" mkdir config
|
|
if not exist "owned_cards" mkdir owned_cards
|
|
|
|
echo Starting MTG Python Deckbuilder from Docker Hub...
|
|
echo Your files will be saved in the current directory:
|
|
echo - deck_files\: Your completed decks
|
|
echo - logs\: Application logs
|
|
echo - csv_files\: Card database files
|
|
echo - config\: JSON configs for headless runs (e.g., deck.json)
|
|
echo.
|
|
|
|
REM Run the Docker container with proper volume mounts
|
|
docker run -it --rm ^
|
|
-v "%cd%\deck_files:/app/deck_files" ^
|
|
-v "%cd%\logs:/app/logs" ^
|
|
-v "%cd%\csv_files:/app/csv_files" ^
|
|
-v "%cd%\owned_cards:/app/owned_cards" ^
|
|
-v "%cd%\config:/app/config" ^
|
|
mwisnowski/mtg-python-deckbuilder:latest
|
|
|
|
echo.
|
|
echo MTG Python Deckbuilder session ended.
|
|
echo Your files are saved in: %cd%
|
|
echo.
|
|
echo Tips:
|
|
echo - For headless: set environment variables, e.g. -e DECK_MODE=headless -e DECK_CONFIG=/app/config/deck.json
|
|
echo - If the container seems to use an old config, mount the config folder (done above) or prune anonymous volumes.
|
|
pause
|