feat: load env vars from file or archive at startup (#4053)

This commit is contained in:
Chip Wolf ‮ authored and GitHub committed 2026-05-12 18:56:30 -05:00
1 parent b35db38cd3
commit ffbd905ec4
15 files changed
+250 -3

No files matched your search

@@ -0,0 +1,18 @@
services:
mc:
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
environment:
EULA: "true"
SETUP_ONLY: "true"
LOAD_ENV_FROM_ARCHIVE: /test/load-env.zip
MOTD: from-compose
LOG_TIMESTAMP: "true"
DEBUG: "true"
# the following are only used to speed up test execution
TYPE: CUSTOM
CUSTOM_SERVER: /servers/fake.jar
VERSION: 1.18.1
volumes:
- ./data:/data
- ./load-env.zip:/test/load-env.zip
- ./fake.jar:/servers/fake.jar
Whitespace-only changes.
@@ -0,0 +1 @@
mc-image-helper assert propertyEquals --file=server.properties --property=motd --expect=from-archive