From 7a0e3886f6c8c6d041baefd2a2ff08b0a56fa44c Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 23 Jul 2020 20:17:22 +0200 Subject: [PATCH] integrated development environment --- .gitignore | 1 - .gitmodules | 3 +++ dev/.gitignore | 1 + dev/minetest.conf | 3 +++ dev/start_minetest.sh | 9 +++++++++ dev/worldmods/mapserver_mod | 1 + 6 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 100644 dev/.gitignore create mode 100644 dev/minetest.conf create mode 100755 dev/start_minetest.sh create mode 160000 dev/worldmods/mapserver_mod 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