Giter Site home page Giter Site logo

palworld-docker's Introduction

palworld-docker

This project generated nighly docker images for Palworld server and provides scripts to execute it on a Linux machine.

Install the palworld server

Install on Debian

Install docker

To install docker, please follow the official documentation.

Create a palworld user

Create a palworld user that will run the container. The save will be stored inside the home directory of the palword user. The user is added to the docker group so it can launch the palworld server docker container generated by this repository.

CONTAINER_UID=$(sudo docker run --entrypoint=bash ghcr.io/cyr62110/palworld:latest -c "id -u")
CONTAINER_GID=$(sudo docker run --entrypoint=bash ghcr.io/cyr62110/palworld:latest -c "id -g")
sudo groupadd -g $CONTAINER_GID palworld
sudo useradd --create-home palworld -u $CONTAINER_UID -g palworld --groups docker --shell /bin/bash

The user id and group id of the palworld user are matched to the one of the user in the container. This will allow the container user to write on the user home.

TODO: Improve how to handle the user & the group inside the container.

Install the palworld systemd service

Download the palworld systemd service from this repository:

sudo curl https://raw.githubusercontent.com/cyr62110/palworld-docker/main/etcd/palworld.service > /etc/systemd/system/palword.service

Finally enable the service:

sudo systemctl enable palworld

Configure the Palworld server

The docker container will check the presence of a configuration for the Palworld server before starting.

You can copy a default configuration template by running the following commands as palworld user:

docker run --entrypoint=bash \
    -e PALSERVER_PATH=/home/steam/Steam/steamapps/common/PalServer \
    -v /home/palworld:/home/steam/Steam/steamapps/common/PalServer/Pal/Saved \
    ghcr.io/cyr62110/palworld:latest -c "mkdir -p \$PALSERVER_PATH/Pal/Saved/Config/LinuxServer && cp \$PALSERVER_PATH/DefaultPalWorldSettings.ini \$PALSERVER_PATH/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini"

Check the Config/LinuxServer/PalWorldSettings.ini has been properly created.

Run the server

sudo systemctl start palworld

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.