-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Docker A Dockerfile has been added for a test server image. This can be spun up using the compose.yml file with `docker-compose up` ## Aliases in plugin.yml Some aliases in the plugin.yml were modified to not use special characters, as this can result in the plugin being unusable on some servers due to the plugin.yml being unable to be parsed.
- Loading branch information
1 parent
7168da8
commit c7b1f26
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu | ||
|
||
# Install dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y git \ | ||
openjdk-17-jdk \ | ||
openjdk-17-jre \ | ||
wget \ | ||
locales | ||
|
||
# Create server directory | ||
WORKDIR /testmcserver | ||
|
||
# Build server | ||
RUN wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar | ||
RUN git config --global --unset core.autocrlf || : | ||
RUN java -jar BuildTools.jar --rev 1.20.4 | ||
RUN echo "eula=true" > eula.txt | ||
RUN mkdir plugins | ||
|
||
# set locale to support us, de, fr, & br | ||
RUN locale-gen en_US.UTF-8 de_DE.UTF-8 fr_FR.UTF-8 pt_BR.UTF-8 && \ | ||
update-locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8 && \ | ||
dpkg-reconfigure --frontend=noninteractive locales | ||
|
||
# Build plugin | ||
COPY . . | ||
RUN ./gradlew build | ||
RUN cp build/libs/*-all.jar plugins | ||
|
||
# Run server | ||
EXPOSE 25565 | ||
ENTRYPOINT java -jar spigot-1.20.4.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
testmcserver: | ||
build: . | ||
image: mf-test-mc-server | ||
container_name: mf-test-mc-server | ||
ports: | ||
- "25565:25565" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters