Skip to content
Snippets Groups Projects
Commit a89871e6 authored by PICHOU Kyâne's avatar PICHOU Kyâne Committed by PICHOU Kyâne
Browse files

Add minetest image

parent d13ab9a8
No related branches found
No related tags found
1 merge request!5CheckMK stable image
FROM registry.picasoft.net:5000/pica-debian:latest
MAINTAINER kyane@kyane.fr
# Install minetest server
RUN apt-get update -y \
&& apt-get install -y \
minetest-server \
&& rm -rf /var/lib/apt/lists/*
# Create all folders
RUN mkdir -p /root/.minetest/textures /root/.minetest/worlds
EXPOSE 30000
# Add entrypoint
COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
# Minetest server
Image to run a Minetest server. Listen on port 30000.
## Configuration
The Minetest server configuration is defined on a `minetest.conf` file.
### Mounted volumes
To have persistent data and configuration, you should mount some volumes on your host system :
- `/root/.minetest/minetest.conf` : Minetest configuration file
- `/root/.minetest/worlds` : Minetest maps
- `/root/.minetest/textures` : Minetest textures
### Log levels
To set the log level of your container, you can use the `LOGLEVEL` environment variable.
- 1 : Print to console errors only
- 2 : Print more information to console
- 3 : Print even more information to console
- 4 : Print enormous amounts of information to log and console
Default (and recommended) level is 1.
## Install Framinetest pack Framasoft
```
cd /tmp
wget https://framinetest.org/dl/worldmods.tar.gz https://framinetest.org/dl/textures.tar.gz
cd /PATH/TO/DATA/VOLUME/textures
tar xvf /tmp/textures.tar.gz
cd /PATH/TO/DATA/VOLUME/worlds
mkdir myworldname
cd myworldname
tar xvf /tmp/worldmods.tar.gz
```
## TODO
- Support other backend ? (PostgreSQL ? => https://wiki.minetest.net/Database_backends/fr )
#!/bin/bash
# Check if there is a configurtion file
if [ ! -f /root/.minetest/minetest.conf ]
then
# Use the default configuration file
cp /etc/minetest/minetest.conf /root/.minetest/minetest.conf
fi
# Set loglevel
case "$LOGLEVEL" in
1)
logoption="--quiet"
;;
2)
logoption="--info"
;;
3)
logoption="--verbose"
;;
4)
logoption="--trace"
;;
*)
logoption="--quiet"
;;
esac
# Run the server
/usr/games/minetestserver "$logoption" --gameid minetest --config /root/.minetest/minetest.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment