From 782509ad38b451b47499fa445d9f162da39a70c5 Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Sat, 5 Jun 2021 14:40:22 +0200 Subject: [PATCH] script: redesigned build scripts, and added docker start and stop scripts --- rebuildDocker.bat | 2 ++ rebuildDocker.ps1 | 2 +- startDocker.bat | 2 ++ stopDocker.bat | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 rebuildDocker.bat create mode 100644 startDocker.bat create mode 100644 stopDocker.bat diff --git a/rebuildDocker.bat b/rebuildDocker.bat new file mode 100644 index 0000000..075a5e8 --- /dev/null +++ b/rebuildDocker.bat @@ -0,0 +1,2 @@ +@echo off +powershell .\rebuildDocker.ps1 diff --git a/rebuildDocker.ps1 b/rebuildDocker.ps1 index cf5c162..6473727 100644 --- a/rebuildDocker.ps1 +++ b/rebuildDocker.ps1 @@ -1,3 +1,3 @@ .\gradlew Server:jar docker build -t server-testbuild . -docker run --rm -e "MMU_LOG_LEVEL=5" -p 1218:1218 server-testbuild \ No newline at end of file +# docker run --rm -e "MMU_LOG_LEVEL=5" -p 1218:1218 server-testbuild diff --git a/startDocker.bat b/startDocker.bat new file mode 100644 index 0000000..9c5c2a8 --- /dev/null +++ b/startDocker.bat @@ -0,0 +1,2 @@ +@echo off +docker run --name "Server-Testbuild" -e "MMU_LOG_LEVEL=5" -p 1218:1218 --rm server-testbuild diff --git a/stopDocker.bat b/stopDocker.bat new file mode 100644 index 0000000..faaa87a --- /dev/null +++ b/stopDocker.bat @@ -0,0 +1,2 @@ +@echo off +docker stop Server-Testbuild