mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-05-03 10:35:24 +00:00
Handle packwiz bootstrap installer already being present (#1595)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ./web:/usr/share/nginx/html
|
||||
mc:
|
||||
depends_on:
|
||||
- web
|
||||
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
|
||||
environment:
|
||||
EULA: "true"
|
||||
SETUP_ONLY: "true"
|
||||
PACKWIZ_URL: http://web/pack.toml
|
||||
TYPE: CUSTOM
|
||||
CUSTOM_SERVER: /servers/fake.jar
|
||||
VERSION: 1.19
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./fake.jar:/servers/fake.jar
|
||||
@@ -0,0 +1 @@
|
||||
mc-image-helper assert fileExists mods/architectury-5.7.28-fabric.jar
|
||||
@@ -0,0 +1,6 @@
|
||||
hash-format = "sha256"
|
||||
|
||||
[[files]]
|
||||
file = "mods/architectury-api.pw.toml"
|
||||
hash = "c20179449fff711afb96ba0eadd3328fbf1aae639082d25d77c9080837685b79"
|
||||
metafile = true
|
||||
@@ -0,0 +1,13 @@
|
||||
name = "Architectury API"
|
||||
filename = "architectury-5.7.28-fabric.jar"
|
||||
side = "both"
|
||||
|
||||
[download]
|
||||
url = "https://cdn.modrinth.com/data/lhGA9TYQ/versions/5.7.28+fabric/architectury-5.7.28-fabric.jar"
|
||||
hash-format = "sha1"
|
||||
hash = "aa38ae9cc2e978e4ec87ff891f7b02ea0c0ee1b8"
|
||||
|
||||
[update]
|
||||
[update.modrinth]
|
||||
mod-id = "lhGA9TYQ"
|
||||
version = "Hf0Bau1j"
|
||||
@@ -0,0 +1,13 @@
|
||||
name = "Vanillia Server"
|
||||
author = "itzg"
|
||||
version = "2.0.0"
|
||||
pack-format = "packwiz:1.1.0"
|
||||
|
||||
[index]
|
||||
file = "index.toml"
|
||||
hash-format = "sha256"
|
||||
hash = "1a27b406c3fb6d35167fe659384ab528a6b3f8a66e6c05d593058e646aec591f"
|
||||
|
||||
[versions]
|
||||
fabric = "0.14.8"
|
||||
minecraft = "1.19"
|
||||
@@ -40,7 +40,7 @@ setupOnlyMinecraftTest(){
|
||||
fi
|
||||
|
||||
start=$(date +%s)
|
||||
if ! logs=$(docker-compose run mc 2>&1); then
|
||||
if ! logs=$(docker compose run mc 2>&1); then
|
||||
outputContainerLog "$logs"
|
||||
result=1
|
||||
elif [ -f verify.sh ]; then
|
||||
@@ -57,7 +57,7 @@ setupOnlyMinecraftTest(){
|
||||
echo "${folder} PASSED in $(delta start)"
|
||||
fi
|
||||
|
||||
docker-compose down -v --remove-orphans > /dev/null
|
||||
docker compose down -v --remove-orphans >& /dev/null
|
||||
cd ..
|
||||
|
||||
return $result
|
||||
|
||||
Reference in New Issue
Block a user