9/24/2023 0 Comments Server commands minetest![]() ![]() We also need to expose the server’s port - 30000 by default - to the outside world. games (we might want to add, remove or update certain subgames without building a new image) Let’s start by collecting the important files and directories that need to persist, relative to our Minetest directory: To do this, Docker can create volumes, which map directories from the host to container. ![]() For a Minetest server, you usually don’t want this, so we need to tell Docker to store the important data somewhere persistent: the host machine. This means that you lose all data gathered during runtime. Great! We should now be able to build a Minetest server! But we’re not done yet! Persisting worlds, subgames and modsĮvery time you start a new container, it’s initial state equals its image. Let’s tell cmake to build a run in place server: If you need a specific version, be sure to change the URL and the filenames.Įventually it’s time to compile our server. Now we need to download the source code and the default subgame minetest_game. Next, we need to install the Minetest dependencies, as listed in Minetest’s README. Of course, you can also use other images, like Alpine, but the dependencies might be a little different. We’ll use the latest Ubuntu image to stay as close to the official documentation as possible. It contains your application and serves as the model from which your container is created. Creating the DockerfileĮvery Docker Container needs an image to run from. Please follow the instructions on to install Docker on your OS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |