Skip to content

Commit

Permalink
Extract current version from file VERSION in run.cmd and run-shell-on…
Browse files Browse the repository at this point in the history
…ly.cmd too
  • Loading branch information
pgleeson committed May 8, 2024
1 parent e49b7a7 commit 0ce2ab6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion run-shell-only.cmd
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
SET OW_OUT_DIR=/home/ow/shared
SET HOST_OUT_DIR=%~dps0
@SET /P version=<VERSION

docker run -it ^
--name openworm ^
-e OW_OUT_DIR=%OW_OUT_DIR% ^
--privileged ^
-v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^
openworm/openworm:0.9.3 ^
openworm/openworm:%version% ^
/bin/bash
3 changes: 2 additions & 1 deletion run.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ setlocal

set OW_OUT_DIR=/home/ow/shared
set HOST_OUT_DIR=%~dps0
@SET /P version=<VERSION

:GETOPTS
if /i "%1" == "-d" set DURATION=%2 & shift
Expand All @@ -20,7 +21,7 @@ docker run -d ^
-e DURATION=%DURATION% ^
--privileged ^
-v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^
openworm/openworm:0.9.3 ^
openworm/openworm:%version% ^
/bin/bash -c "python master_openworm.py"

docker logs -f openworm
Expand Down

0 comments on commit 0ce2ab6

Please sign in to comment.