Skip to content

Commit

Permalink
Updated the run.bat script adding commands (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenPj authored Apr 13, 2023
1 parent 74685d2 commit e772f9f
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions run.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
@ECHO OFF

IF [%1]==[] (
echo "Usage: %0 {start|stop|purge|tail}"
echo "Usage: %0 {build_start | build | start | stop | purge | tail}"
GOTO END
)

IF %1==build (
CALL :build
GOTO END
)
IF %1==build_start (
CALL :build_start
CALL :tail
GOTO END
)
IF %1==start (
CALL :start
CALL :tail
Expand All @@ -24,17 +33,27 @@ IF %1==tail (
GOTO END
)

echo "Usage: %0 {start|stop|purge|tail}"
echo "Usage: %0 {build_start | build | start | stop | purge | tail}"
:END
EXIT /B %ERRORLEVEL%

:start
:build
docker-compose build
EXIT /B 0
:build_start
docker volume create aps-db-sa-volume
docker volume create aps-admin-db-sa-volume
docker volume create aps-contentstore-sa-volume
docker volume create aps-es-sa-volume
docker-compose up --build -d
EXIT /B 0
:start
docker volume create aps-db-sa-volume
docker volume create aps-admin-db-sa-volume
docker volume create aps-contentstore-sa-volume
docker volume create aps-es-sa-volume
docker-compose up -d
EXIT /B 0
:down
docker-compose -f "%COMPOSE_FILE_PATH%" down
EXIT /B 0
Expand All @@ -49,4 +68,4 @@ EXIT /B 0
docker volume rm aps-admin-db-sa-volume
docker volume rm aps-contentstore-sa-volume
docker volume rm aps-es-sa-volume
EXIT /B 0
EXIT /B 0

0 comments on commit e772f9f

Please sign in to comment.