mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-06 06:46:27 +00:00
Allow ICON to reference a local file (#1466)
This commit is contained in:
17
tests/setuponlytests/icon-file-exact/docker-compose.yml
Normal file
17
tests/setuponlytests/icon-file-exact/docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
mc:
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "true"
|
||||
SETUP_ONLY: "true"
|
||||
ICON: /extra/4737386_minecraft_squircle_icon_64x64.png
|
||||
# the following are only used to speed up test execution
|
||||
TYPE: CUSTOM
|
||||
CUSTOM_SERVER: /servers/fake.jar
|
||||
VERSION: 1.18.1
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./extra:/extra
|
||||
- ./fake.jar:/servers/fake.jar
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
0
tests/setuponlytests/icon-file-exact/fake.jar
Normal file
0
tests/setuponlytests/icon-file-exact/fake.jar
Normal file
1
tests/setuponlytests/icon-file-exact/verify.sh
Normal file
1
tests/setuponlytests/icon-file-exact/verify.sh
Normal file
@@ -0,0 +1 @@
|
||||
mc-image-helper assert fileExists server-icon.png
|
||||
17
tests/setuponlytests/icon-file-scale/docker-compose.yml
Normal file
17
tests/setuponlytests/icon-file-scale/docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
mc:
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "true"
|
||||
SETUP_ONLY: "true"
|
||||
ICON: /extra/4737386_minecraft_squircle_icon.png
|
||||
# the following are only used to speed up test execution
|
||||
TYPE: CUSTOM
|
||||
CUSTOM_SERVER: /servers/fake.jar
|
||||
VERSION: 1.18.1
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./extra:/extra
|
||||
- ./fake.jar:/servers/fake.jar
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
0
tests/setuponlytests/icon-file-scale/fake.jar
Normal file
0
tests/setuponlytests/icon-file-scale/fake.jar
Normal file
1
tests/setuponlytests/icon-file-scale/verify.sh
Normal file
1
tests/setuponlytests/icon-file-scale/verify.sh
Normal file
@@ -0,0 +1 @@
|
||||
mc-image-helper assert fileExists server-icon.png
|
||||
Reference in New Issue
Block a user