improved dev stuff. Local server and build

This commit is contained in:
2020-06-28 15:08:12 +02:00
parent 46e97dcb43
commit f8a466a955
12 changed files with 58 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
version: "3"
services:
spigot-dev:
image: "nimmis/spigot"
container_name: "spigot-dev"
environment:
- EULA=true
- MC_MAXMEM=4g
- SPIGOT_VER=1.16.1
- SPIGOT_UID=1000
volumes:
- "./container:/minecraft"
restart: "no"
ports:
- "25565:25565"

5
dev/docker/insertPlugin.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env sh
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
cp $SCRIPTPATH/../../build/libs/* $SCRIPTPATH/container/plugins

2
dev/docker/log.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env sh
sudo docker exec spigot-dev mc_log

2
dev/docker/restartServer.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env sh
sudo docker exec spigot-dev mc_restart