2 Commits bdcec92cc3 ... 91cfc4f926

Author SHA1 Message Date
  Apollo 91cfc4f926 Updated dockerfile and README 2 weeks ago
  Apollo 1b1509365c Luanti 5.10 issues with mod data dir 2 weeks ago
3 changed files with 21 additions and 3 deletions
  1. 16 1
      README.md
  2. 1 0
      docker-compose.yml
  3. 4 2
      luanti/Dockerfile

+ 16 - 1
README.md

@@ -1,6 +1,11 @@
 # Luanti Server
 
-## Setup 1-2-3
+## Useful Links
+
+- Luanti [Github](https://github.com/luanti-org/luanti)
+- [ContentDB](https://content.luanti.org/)
+
+## Setup
 
 1. Grab a game, put it in data/games
 2. Get your mods, put them in data/mods
@@ -8,3 +13,13 @@
 
 \* Or use one of the included worlds
 
+## Build
+
+1. Clone this repo
+2. Edit `luanti/Dockerfile` and pick a `VERSION` (5.9.0 or higher)
+3. `docker compose build` (Build the server)
+4. [Setup](#setup)
+5. `docker compose up` \*
+
+> \* Add `-d` (daemon/background) once you've verified you've setup your server correctly (No missing mods, incompatable mods, etc.)
+

+ 1 - 0
docker-compose.yml

@@ -6,6 +6,7 @@ services:
                 ports:
                         - "30000:30000/udp"
                 volumes:
+                        - ./data/mod_data:/mintest/mod_data
                         - ./data/minetest.conf:/minetest/minetest.conf
                         - ./data/worlds:/minetest/worlds
                         - ./data/games:/minetest/games

+ 4 - 2
luanti/Dockerfile

@@ -2,7 +2,9 @@ from debian:buster-slim as builder
 
 WORKDIR /minetest
 
-ARG VERSION="5.10.0"
+# The building requires Irrlich integrated in Luanti's source
+# (Which means the minimum you can use is 5.9.0)
+ARG VERSION="5.11.0"
 
 RUN apt-get update && \
     apt-get install -y \
@@ -15,7 +17,7 @@ RUN apt-get update && \
         libzstd-dev libluajit-5.1-dev gettext \
         git
 
-RUN git clone https://github.com/minetest/minetest minetest && \
+RUN git clone https://github.com/luanti-org/luanti minetest && \
     cd minetest && \
     git checkout ${VERSION}