diff --git a/.gitignore b/.gitignore index b0dca26..49dd053 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ mapserver -mapserver_mod world.mt output test-output diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6247b5f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dev/worldmods/mapserver_mod"] + path = dev/worldmods/mapserver_mod + url = https://github.com/minetest-mapserver/mapserver_mod diff --git a/dev/.gitignore b/dev/.gitignore new file mode 100644 index 0000000..1269488 --- /dev/null +++ b/dev/.gitignore @@ -0,0 +1 @@ +data diff --git a/dev/minetest.conf b/dev/minetest.conf new file mode 100644 index 0000000..d8a2bf4 --- /dev/null +++ b/dev/minetest.conf @@ -0,0 +1,3 @@ +default_privs = fast, home, fly, noclip, privs +secure.http_mods = mapserver +mapserver.url = http://127.0.0.1:8080 diff --git a/dev/start_minetest.sh b/dev/start_minetest.sh new file mode 100755 index 0000000..289a2a6 --- /dev/null +++ b/dev/start_minetest.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +docker run --rm -it \ + -u root:root \ + -v $(pwd)/minetest.conf:/etc/minetest/minetest.conf \ + -v $(pwd)/worldmods:/root/.minetest/worlds/world/worldmods \ + -v $(pwd)/data:/root/.minetest/worlds/world \ + --network host \ + registry.gitlab.com/minetest/minetest/server:5.2.0 diff --git a/dev/worldmods/mapserver_mod b/dev/worldmods/mapserver_mod new file mode 160000 index 0000000..f6f3cd4 --- /dev/null +++ b/dev/worldmods/mapserver_mod @@ -0,0 +1 @@ +Subproject commit f6f3cd4ff5cf3900bb2b73370e936eb41ea46f6c