Implement basic Velocity proxy

- Split entrypoint into functions for Minecraft and Velocity
- Implement Velocity Dockerfile based on JRE image
- Add velocity default build to ./builds
- Change error to warning for missing plugins.json build file
This commit is contained in:
2024-05-25 23:56:43 -04:00
parent 3a943e9397
commit f83c8499e6
5 changed files with 268 additions and 71 deletions

View File

@@ -14,11 +14,12 @@ PRUNE_IMAGES = \
localhost/minecraft:latest-spigot \
localhost/minecraft:latest-craftbukkit \
localhost/minecraft-jre:latest \
localhost/minecraft-jdk:latest
localhost/minecraft-jdk:latest \
localhost/velocity:latest
.PHONY: all clean configure craftbukkit default install jdk jre spigot vanilla
default: vanilla
all: vanilla paper spigot craftbukkit
all: vanilla paper spigot craftbukkit velocity
jre:
$(DOCKER_COMPOSE_BUILD) minecraft-jre
@@ -38,6 +39,9 @@ spigot: jre jdk
craftbukkit: jre jdk
$(DOCKER_COMPOSE_BUILD) minecraft-craftbukkit
velocity: jre
$(DOCKER_COMPOSE_BUILD) minecraft-velocity
install:
$(DOCKER_COMPOSE_UP)
@@ -70,8 +74,7 @@ define copy_build_files
echo "INFO: \"$${SRC_FILE}\" copied to \"$${DEST_FILE}\""; \
fi; \
else \
echo "ERROR: Source file \"$${SRC_FILE}\" does not exist."; \
exit 1; \
echo "WARN: Source file \"$${SRC_FILE}\" does not exist."; \
fi
endef