Last active
March 9, 2022 00:55
-
-
Save atmoz/a42dadbdeb3945fdba6c402dd074dc1e to your computer and use it in GitHub Desktop.
Minetest server for beta map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM registry.gitlab.com/minetest/minetest/server:5.0.1 | |
USER root | |
RUN apt-get update && \ | |
apt-get install -y git | |
RUN rm -rf /usr/local/share/minetest/games/*; \ | |
git clone --recursive https://github.com/MT-CTF/capturetheflag.git /usr/local/share/minetest/games/capturetheflag && \ | |
rm -f /usr/local/share/minetest/games/capturetheflag/mods/ctf/ctf_map/maps/* | |
COPY ./maps/* /usr/local/share/minetest/games/capturetheflag/mods/ctf/ctf_map/maps/ | |
COPY ./minetest.conf /usr/local/share/minetest/games/capturetheflag/minetest.conf | |
USER minetest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server_name = Capture the Flag - Beta Map: Towers | |
server_description = Come help test a new beta map: Towers! | |
motd = Thanks for testing my new map. Please give feedback in #maps: https://discord.gg/es2J9G | |
server_address = 3.120.138.233 | |
port = 30001 | |
server_announce = true | |
give_initial_stuff = true | |
enable_pvp = true | |
mg_name = singlenode | |
vote.kick_vote = false | |
barrier = 106 | |
regen_interval = 6 | |
regen_amount = 1 | |
random_messages_interval = 60 | |
sprint_stamina = 10 | |
enable_lavacooling = false | |
max_users = 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker logs --tail 10000 minetest 2>&1 | grep "List of players" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker build --tag=minetestserver . | |
docker run -d \ | |
--name minetest \ | |
-p 30001:30001/udp \ | |
-v $PWD/maps:/usr/local/share/minetest/games/capturetheflag/mods/ctf/ctf_map/maps \ | |
minetestserver \ | |
minetestserver --gameid capturetheflag --port 30001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment