mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 06:02:25 +01:00
Simplify and fix docker test
This commit is contained in:
parent
9bd1f24d36
commit
d89170c129
@ -4,8 +4,7 @@ trap 'rm -rf "$world" || :' EXIT
|
|||||||
|
|
||||||
[ -f game.conf ] || { echo "Must be run in game root folder." >&2; exit 1; }
|
[ -f game.conf ] || { echo "Must be run in game root folder." >&2; exit 1; }
|
||||||
|
|
||||||
cp -v utils/test/world.mt "$world/"
|
chmod -R 777 "$world" # container uses unprivileged user inside
|
||||||
chmod -R a+rwX "$world" # needed because server runs as unprivileged user inside container
|
|
||||||
|
|
||||||
vol=(
|
vol=(
|
||||||
-v "$PWD/utils/test/minetest.conf":/etc/minetest/minetest.conf
|
-v "$PWD/utils/test/minetest.conf":/etc/minetest/minetest.conf
|
||||||
@ -14,6 +13,7 @@ vol=(
|
|||||||
-v "$world":/var/lib/minetest/.minetest/world
|
-v "$world":/var/lib/minetest/.minetest/world
|
||||||
)
|
)
|
||||||
[ -z "$DOCKER_IMAGE" ] && DOCKER_IMAGE="ghcr.io/minetest/minetest:master"
|
[ -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
|
exit 0
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
auth_backend = sqlite3
|
|
||||||
backend = sqlite3
|
|
||||||
creative_mode = false
|
|
||||||
enable_damage = true
|
|
||||||
gameid = minetest
|
|
||||||
mod_storage_backend = sqlite3
|
|
||||||
player_backend = sqlite3
|
|
Loading…
Reference in New Issue
Block a user