mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-02-17 07:03:57 +00:00
Add source dir override for /plugins, /mods, and /config (#1957)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{}
|
||||
21
tests/setuponlytests/mounts-custom/docker-compose.yml
Normal file
21
tests/setuponlytests/mounts-custom/docker-compose.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
mc:
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "true"
|
||||
SETUP_ONLY: "true"
|
||||
TYPE: CUSTOM
|
||||
CUSTOM_SERVER: /servers/fake.jar
|
||||
VERSION: 1.18.1
|
||||
COPY_PLUGINS_SRC: /custom/plugins
|
||||
COPY_PLUGINS_DEST: /data/custom-plugins
|
||||
COPY_MODS_SRC: /custom/mods
|
||||
COPY_MODS_DEST: /data/custom-mods
|
||||
COPY_CONFIG_SRC: /custom/config
|
||||
COPY_CONFIG_DEST: /data/custom-config
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./custom:/custom
|
||||
- ./fake.jar:/servers/fake.jar
|
||||
0
tests/setuponlytests/mounts-custom/fake.jar
Normal file
0
tests/setuponlytests/mounts-custom/fake.jar
Normal file
3
tests/setuponlytests/mounts-custom/verify.sh
Normal file
3
tests/setuponlytests/mounts-custom/verify.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
mc-image-helper assert fileExists custom-plugins/plugin.jar
|
||||
mc-image-helper assert fileExists custom-mods/mod.jar
|
||||
mc-image-helper assert fileExists custom-config/test.json
|
||||
Reference in New Issue
Block a user