1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-15 14:30:18 +01:00

Simplify and fix docker test

This commit is contained in:
sfan5 2024-08-18 19:35:43 +02:00 committed by GitHub
parent 9bd1f24d36
commit d89170c129
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 10 deletions

View File

@ -4,8 +4,7 @@ trap 'rm -rf "$world" || :' EXIT
[ -f game.conf ] || { echo "Must be run in game root folder." >&2; exit 1; }
cp -v utils/test/world.mt "$world/"
chmod -R a+rwX "$world" # needed because server runs as unprivileged user inside container
chmod -R 777 "$world" # container uses unprivileged user inside
vol=(
-v "$PWD/utils/test/minetest.conf":/etc/minetest/minetest.conf
@ -14,6 +13,7 @@ vol=(
-v "$world":/var/lib/minetest/.minetest/world
)
[ -z "$DOCKER_IMAGE" ] && DOCKER_IMAGE="ghcr.io/minetest/minetest:master"
docker run --rm -i "${vol[@]}" "$DOCKER_IMAGE"
docker run --rm -i "${vol[@]}" "$DOCKER_IMAGE" --config /etc/minetest/minetest.conf --gameid minetest
test -f "$world/map.sqlite" || exit 1
exit 0

View File

@ -1,7 +0,0 @@
auth_backend = sqlite3
backend = sqlite3
creative_mode = false
enable_damage = true
gameid = minetest
mod_storage_backend = sqlite3
player_backend = sqlite3