Browse Source

Updated dockerfile and README

I've added a few more details in README, and Dockerfile.

Specifically I added that the current build system requires Irrlich
embbeded into Luanti's source, this occured in Luanti 5.9.0 thus
limiting the version at the moment.

Still no clues as to what or why we're getting errors about failing to
make mod_data dir. (I'm starting to wonder if it's trying to run in
~/.minetest within the container... rather than in-place, which would
cause it to build the .minetest dir, which would then be owned by root,
which would prohibit further mkdirs and pretty much everything else)
Apollo 2 weeks ago
parent
commit
91cfc4f926
2 changed files with 20 additions and 3 deletions
  1. 16 1
      README.md
  2. 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.)
+

+ 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}