mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-03-21 22:12:44 +00:00
added variables for pufferfish, also added setup only test (#1399)
This commit is contained in:
13
tests/setuponlytests/pufferfish/docker-compose.yml
Normal file
13
tests/setuponlytests/pufferfish/docker-compose.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
mc:
|
||||
restart: "no"
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "TRUE"
|
||||
SETUP_ONLY: "TRUE"
|
||||
TYPE: PUFFERFISH
|
||||
VERSION: ${MINECRAFT_VERSION:-LATEST}
|
||||
volumes:
|
||||
- ./data:/data
|
||||
1
tests/setuponlytests/pufferfish/require.sh
Normal file
1
tests/setuponlytests/pufferfish/require.sh
Normal file
@@ -0,0 +1 @@
|
||||
[[ $MINECRAFT_VERSION == LATEST ]] || exit 1
|
||||
3
tests/setuponlytests/pufferfish/verify.sh
Normal file
3
tests/setuponlytests/pufferfish/verify.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
mc-image-helper assert fileExists "/data/pufferfish-*"
|
||||
Reference in New Issue
Block a user