mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-16 04:03:18 +00:00
feat(minecraft-server): onbuild trigger for downloading plugins and mods (#267)
* feat(minecraft-server): add onbuild trigger Added a ONBUILD trigger for the [ToF-BuildTools](https://git.faldoria.de/tof/server/build-tools). If a plugins.yml is provided the BuildTools will download all plugins configured in the YAML. https://github.com/itzg/dockerfiles/issues/218 * feat(minecraft-server): add arg for build output * fix(minecraft-server): syntax error in Dockerfile * fix(minecraft-server): chown jar files after building * feat(minecraft-server): cleanup buildtools after using * fix(minecraft-server): remove /plugins volume The /plugins volume causes weird behaviour when prepolulating it with files on build. Removing it as an explicit volume fixes that. * mc: add example Dockerfile for ToF builds * docs(minecraft-server): add docs for new onbuild trigger * fix(minecraft-server): use correct url for build tools download
This commit is contained in:
@@ -263,6 +263,15 @@ This works well if you want to have a common set of plugins in a separate
|
||||
location, but still have multiple worlds with different server requirements
|
||||
in either persistent volumes or a downloadable archive.
|
||||
|
||||
### Building an image with plugins
|
||||
|
||||
You can also create your own Docker images by extending the `itzg/minecraft-server` image.
|
||||
The image contains an `ONBUILD` trigger that will copy a `plugins.yml` file from you build directory and download any plugins specified in it.
|
||||
|
||||
You can read about the [`ToF-BuildTools` and how to use them here](https://git.faldoria.de/tof/server/build-tools).
|
||||
|
||||
You can also find [an example](examples/ToF-build/) with a custom image in the examples dir.
|
||||
|
||||
## Running a PaperSpigot server
|
||||
|
||||
Enable PaperSpigot server mode by adding a `-e TYPE=PAPER -e VERSION=1.9.4` to your command-line.
|
||||
|
||||
Reference in New Issue
Block a user