updated makefiles and readme
This commit is contained in:
parent
f4e1192748
commit
7c2cde8a1f
7
Makefile
7
Makefile
|
|
@ -1,4 +1,11 @@
|
|||
WORKING_DIR := $(shell pwd)
|
||||
.PHONY: deploy deploy-1.15.2 test up down
|
||||
|
||||
deploy: spigot/spigot.jar
|
||||
|
||||
deploy-1.15.2: build/spigot-1.15.2.jar spigot
|
||||
cp build/spigot-1.15.2.jar spigot/spigot.jar
|
||||
|
||||
|
||||
test:
|
||||
docker run -it --name mc-test -p 25565:25565 --rm -v $(WORKING_DIR)/spigot:/mc \
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@ The server is configured to use up to 4 GB if ram. To change this you will need
|
|||
> -Xmx4G
|
||||
- maximum 4 GB of memeory
|
||||
|
||||
## Warnings
|
||||
All file permisions are handeled by docker, thus they will be owned by root on
|
||||
the host filesystem.
|
||||
|
||||
## Building
|
||||
> make build-latest
|
||||
- builds the latest version of of spigot
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
LATEST := $(shell ls -rt build/spigot*.jar | tail -1)
|
||||
|
||||
deploy: build-latest spigot
|
||||
spigot/spigot.jar: build-latest spigot
|
||||
cp $(LATEST) spigot/spigot.jar
|
||||
|
||||
deploy-1.15.2: build/spigot-1.15.2.jar spigot
|
||||
cp build/spigot-1.15.2.jar spigot/spigot.jar
|
||||
|
||||
build-latest: build-image
|
||||
docker run -it --rm -v $(WORKING_DIR)/build:/mc -w /mc java-build java -cp /mc \
|
||||
-jar BuildTools.jar
|
||||
|
|
|
|||
Loading…
Reference in New Issue