This commit is contained in:
kento2 2026-08-21 17:54:37 +02:00
parent d6e4cae9c6
commit 76fb1ca699
51 changed files with 33 additions and 11 deletions

View file

@ -1,3 +0,0 @@
FROM git.lab0x13.site/scrow/papermc:0.2
COPY ./world /data/world

View file

@ -1,3 +0,0 @@
include ../container.mk
TAG := lobby
VERSION := 0.2

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1 +0,0 @@
þ)˜õbÝMΚo%óò{EÏ

View file

@ -21,8 +21,29 @@ COPY --chmod=755 entrypoint.sh /entrypoint.sh
COPY ./server.properties /data COPY ./server.properties /data
RUN mkdir -p /data/config RUN mkdir -p /data/config
COPY ./paper-global.yml /data/config COPY ./paper-global.yml /data/config
COPY ./ops.json /data
RUN printf eula=true > eula.txt RUN printf eula=true > eula.txt
RUN java -jar server.jar --initSettings RUN java -Xms3072M -Xmx3072M --add-modules=jdk.incubator.vector -XX:+UseG1GC \
-XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 \
-XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch \
-XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 \
-XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 \
-XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 \
-XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 \
-Dusing.aikars.flags=https://mcflags.emc.gs \-Daikars.new.flags=true \
-XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M \
-XX:G1ReservePercent=20 -jar server.jar --nogui --initSettings
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
CMD ["java", "-jar", "server.jar", "--nogui"] CMD ["java", "-Xms3072M", "-Xmx3072M", "--add-modules=jdk.incubator.vector", \
"-XX:+UseG1GC", "-XX:+ParallelRefProcEnabled", "-XX:MaxGCPauseMillis=200", \
"-XX:+UnlockExperimentalVMOptions", "-XX:+DisableExplicitGC", \
"-XX:+AlwaysPreTouch", "-XX:G1HeapWastePercent=5", "-XX:G1MixedGCCountTarget=4", \
"-XX:InitiatingHeapOccupancyPercent=15", "-XX:G1MixedGCLiveThresholdPercent=90", \
"-XX:G1RSetUpdatingPauseTimePercent=5", "-XX:SurvivorRatio=32", \
"-XX:+PerfDisableSharedMem", "-XX:MaxTenuringThreshold=1", \
"-Dusing.aikars.flags=https://mcflags.emc.gs", "-Daikars.new.flags=true", \
"-XX:G1NewSizePercent=30", "-XX:G1MaxNewSizePercent=40", \
"-XX:G1HeapRegionSize=8M", "-XX:G1ReservePercent=20", \
"-jar", "server.jar", "--nogui"]

8
images/papermc/ops.json Normal file
View file

@ -0,0 +1,8 @@
[
{
"uuid": "3218c49a-b80d-49ae-a42e-4496141eb2b1",
"name": "kento2",
"level": 4,
"bypassesPlayerLimit": false
}
]

View file

@ -77,7 +77,7 @@ job "minecraft" {
resources { resources {
cpu = 1000 cpu = 1000
memory = 2048 # we already limit memory using java args
} }
} }
} }

View file

@ -1,6 +1,6 @@
#!/command/execlineb #!/command/execlineb
nomad job dispatch nomad job dispatch
-meta mode="lobby" -meta mode="lobby"
-meta image="git.lab0x13.site/scrow/lobby:0.2" -meta image="git.lab0x13.site/scrow/papermc:0.2"
-meta plugins="https://git.lab0x13.site/api/packages/scrow/generic/core-bukkit/UNVERSIONED/CoreBukkit.jar" -meta plugins="https://git.lab0x13.site/api/packages/scrow/generic/core-bukkit/UNVERSIONED/CoreBukkit.jar"
minecraft minecraft