Jelajahi Sumber

[breakthru] I've fixed the issue, we work now

So... yeah... Docker does what you tell it too... including placing
'mod_data' directory/docker volume into a place that it shouldn't be,
thus not found by luanti, and thus failure to mkdir (as this wouldn't be
saved, except ugly in the container)

Now that we place it where it needs to be, and updated to a newer Debian
(Introduce Debian 13-14? Trixie)
apollo 4 hari lalu
induk
melakukan
38030467f0
2 mengubah file dengan 25 tambahan dan 37 penghapusan
  1. 20 32
      docker-compose.yml
  2. 5 5
      luanti/Dockerfile

+ 20 - 32
docker-compose.yml

@@ -1,34 +1,22 @@
 
-#services:
-#    luanti:
-#        image: luanti
-#        build: luanti
-#        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
-#            - ./data/mods:/minetest/mods
-#            - ./data/debug.txt:/minetest/debug.txt
-#        user: "1000:1000"
-#        tty: true
-#        stdin_open: true
-#        restart: unless-stopped
-#        logging:
-#            options:
-#                max-size: 2m
+services:
+    luanti:
+        image: luanti
+        build: luanti
+        ports:
+            - "30000:30000/udp"
+        volumes:
+            - ./data/mod_data:/minetest/mod_data
+            - ./data/minetest.conf:/minetest/minetest.conf
+            - ./data/worlds:/minetest/worlds
+            - ./data/games:/minetest/games
+            - ./data/mods:/minetest/mods
+            - ./data/debug.txt:/minetest/debug.txt
+        user: "1000:1000"
+        tty: true
+        stdin_open: true
+        #restart: unless-stopped
+        logging:
+            options:
+                max-size: 2m
 
-#services:
-#  luanti_server:
-#    image: ghcr.io/minetest/minetest:5.10.0
-#    restart: unless-stopped
-#    networks:
-#      - default
-#    volumes:
-#      - ./data/:/var/lib/minetest/
-#      - ./conf/:/etc/minetest/
-#    ports:
-#      - "30000:30000/udp"
-#      - "127.0.0.1:30000:30000/tcp"

+ 5 - 5
luanti/Dockerfile

@@ -1,10 +1,10 @@
-from debian:buster-slim as builder
+FROM debian:trixie-slim AS builder
 
 WORKDIR /minetest
 
 # 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"
+ARG VERSION="5.14.0"
 
 RUN apt-get update && \
     apt-get install -y \
@@ -25,7 +25,7 @@ RUN chdir minetest && \
     cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SEVER=TRUE -DBUILD_CLIENT=FALSE && \
     make -j$(nproc)
 
-from debian:buster-slim as final
+FROM debian:trixie-slim AS final
 
 WORKDIR /minetest
 
@@ -38,12 +38,12 @@ RUN apt-get update && \
     && apt-get clean && rm -rf /var/lib/apt/lists/*
 
 COPY --from=builder /minetest/minetest/bin/luantiserver /minetest/bin/server
-
 COPY --from=builder /minetest/minetest/textures /minetest/textures
 COPY --from=builder /minetest/minetest/builtin /minetest/builtin
 
 EXPOSE 30000
+# Expose for map server
 #EXPOSE 8080
 
-CMD ["./bin/server", "--worldname", "world"]
+CMD ["./bin/server", "--world", "world"]