Skip to content

Commit 4098348

Browse files
committed
Windows bat file for starting php in docker
1 parent 057778a commit 4098348

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@echo off
2+
REM Usage: generateDimensions.bat [--test-urls]
3+
REM If --test-urls is provided, the script will check if referenced URLs are live.
4+
5+
setlocal
6+
SET var=DUMMY=
7+
if "%~1"=="--test-urls" SET var=TEST_REFERENCED_URLS=true
8+
9+
10+
REM Change working directory to the project root
11+
cd %~dp0\..
12+
13+
REM Run the php script in the Docker container
14+
docker run -e %var% -e IS_IMPLEMENTED_WHEN_EVIDENCE=true -ti --rm --volume "%CD%:/app" wurstbrot/dsomm-yaml-generation bash -c "cd /app/ && php yaml-generation/generateDimensions.php"
15+

0 commit comments

Comments
 (0)