mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-04-05 05:08:52 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d293a65f5e | ||
|
|
e6bfa01db5 | ||
|
|
4e122a67d3 | ||
|
|
b11863d3b2 | ||
|
|
93197ffb77 |
17
Dockerfile
17
Dockerfile
@@ -34,7 +34,6 @@ RUN echo 'hosts: files dns' > /etc/nsswitch.conf
|
|||||||
ARG RESTIFY_VER=1.1.6
|
ARG RESTIFY_VER=1.1.6
|
||||||
ARG RCON_CLI_VER=1.4.6
|
ARG RCON_CLI_VER=1.4.6
|
||||||
ARG MC_SERVER_RUNNER_VER=1.3.2
|
ARG MC_SERVER_RUNNER_VER=1.3.2
|
||||||
ARG TOF_BUILDTOOLS_VER=1.2.0
|
|
||||||
ARG ARCH=amd64
|
ARG ARCH=amd64
|
||||||
|
|
||||||
ADD https://github.com/itzg/restify/releases/download/${RESTIFY_VER}/restify_${RESTIFY_VER}_linux_${ARCH}.tar.gz /tmp/restify.tgz
|
ADD https://github.com/itzg/restify/releases/download/${RESTIFY_VER}/restify_${RESTIFY_VER}_linux_${ARCH}.tar.gz /tmp/restify.tgz
|
||||||
@@ -49,22 +48,6 @@ ADD https://github.com/itzg/mc-server-runner/releases/download/${MC_SERVER_RUNNE
|
|||||||
RUN tar -x -C /usr/local/bin -f /tmp/mc-server-runner.tgz mc-server-runner && \
|
RUN tar -x -C /usr/local/bin -f /tmp/mc-server-runner.tgz mc-server-runner && \
|
||||||
rm /tmp/mc-server-runner.tgz
|
rm /tmp/mc-server-runner.tgz
|
||||||
|
|
||||||
ADD https://git.faldoria.de/tof/server/build-tools/-/jobs/artifacts/buildtools-${TOF_BUILDTOOLS_VER}/raw/target/ToF-BuildTools.jar?job=release-artifact /tmp/tof-buildtools/BuildTools.jar
|
|
||||||
|
|
||||||
ONBUILD ARG BUILDTOOLS_OUTPUT=/plugins
|
|
||||||
ONBUILD COPY *Dockerfile* *plugins.yml /tmp/tof-buildtools/
|
|
||||||
ONBUILD RUN \
|
|
||||||
[ -d /tmp/tof-buildtools ] && \
|
|
||||||
[ $(find /tmp/tof-buildtools -type f -name plugins.yml | wc -l) -gt 0 ] && \
|
|
||||||
java -jar /tmp/tof-buildtools/BuildTools.jar \
|
|
||||||
--config "/tmp/tof-buildtools/plugins.yml" \
|
|
||||||
--configs "plugins.yml" \
|
|
||||||
--dir "/tmp/tof-buildtools/" \
|
|
||||||
--output ${BUILDTOOLS_OUTPUT} && \
|
|
||||||
chown -R minecraft:minecraft ${BUILDTOOLS_OUTPUT} && \
|
|
||||||
rm -fR /tmp/tof-buildtools/ || \
|
|
||||||
true
|
|
||||||
|
|
||||||
COPY mcadmin.jq /usr/share
|
COPY mcadmin.jq /usr/share
|
||||||
RUN chmod +x /usr/local/bin/*
|
RUN chmod +x /usr/local/bin/*
|
||||||
|
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -1004,7 +1004,9 @@ ways to adjust the memory settings:
|
|||||||
* `MAX_MEMORY`, independently sets the max heap size
|
* `MAX_MEMORY`, independently sets the max heap size
|
||||||
|
|
||||||
The values of all three are passed directly to the JVM and support format/units as
|
The values of all three are passed directly to the JVM and support format/units as
|
||||||
`<size>[g|G|m|M|k|K]`.
|
`<size>[g|G|m|M|k|K]`. For example:
|
||||||
|
|
||||||
|
-e MEMORY=2G
|
||||||
|
|
||||||
### JVM Options
|
### JVM Options
|
||||||
|
|
||||||
@@ -1022,3 +1024,13 @@ environment variable. In [the example compose file](docker-compose-proxied.yml)
|
|||||||
a companion squid proxy by setting the equivalent of
|
a companion squid proxy by setting the equivalent of
|
||||||
|
|
||||||
-e PROXY=proxy:3128
|
-e PROXY=proxy:3128
|
||||||
|
|
||||||
|
### Using "noconsole" option
|
||||||
|
|
||||||
|
Some older versions of Spigot required `--noconsole` to be passed when detaching stdin. You can
|
||||||
|
pass that at the end of `docker run` after the image name or set `-e CONSOLE=FALSE`.
|
||||||
|
|
||||||
|
### Explicitly disable GUI
|
||||||
|
|
||||||
|
Some older servers get confused and think that the GUI interface is enabled. You can explicitly
|
||||||
|
disable that by passing `-e GUI=FALSE`.
|
||||||
Reference in New Issue
Block a user