Skip to content

Commit

Permalink
Merge branch 'main' of github.com:thijsvanloef/palworld-server-docker…
Browse files Browse the repository at this point in the history
… into toggle-generate-settings
  • Loading branch information
MSpreckels committed Feb 9, 2024
2 parents 43739a3 + e4f06a3 commit aa3040a
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG RCON_VERSION="0.10.3"
ARG SUPERCRONIC_VERSION="0.2.29"

# build rcon-cli for arm64-linux
FROM arm64v8/golang:1.19.3-bullseye as rcon-cli_builder
FROM arm64v8/golang:1.22.0-bullseye as rcon-cli_builder

ARG RCON_VERSION

Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
This is a Docker container to help you get started with hosting your own
[Palworld](https://store.steampowered.com/app/1623730/Palworld/) dedicated server.

This Docker container has been tested and will work on Linux (Ubuntu/Debian), Windows 10 and macOS (including Apple Silicon).
This Docker container has been tested and will work on the following OS:

* Linux (Ubuntu/Debian)
* Windows 10,11
* MacOS (including Apple Silicon M1/M2/M3).

This container has also been tested and will work on both `x64` and `ARM64` based CPU architecture.

> [!IMPORTANT]
> At the moment, Xbox GamePass/Xbox Console players will not be able to join a dedicated server.
Expand All @@ -47,6 +53,10 @@ Massive shoutout to the following sponsors!

Keep in mind that you'll need to change the [environment variables](#environment-variables).

> [!IMPORTANT]
> If you use an ARM64 based CPU (Raspberry pi, M1,M2,M3 Mac, Oracle Cloud Free tier, etc.)
> Please make sure you use the `:latest-arm64` image tag.
### Docker Compose

This repository includes an example [docker-compose.yml](/docker-compose.yml) file you can use to set up your server.
Expand Down
8 changes: 7 additions & 1 deletion docs/zh-CN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
这是一个 [Docker](https://docs.docker.com/engine/install/) 容器,可帮助您创建自己的
[幻兽帕鲁](https://store.steampowered.com/app/1623730/Palworld/) 专用服务器。

此容器经测试可正常在 (Ubuntu/Debian)、 Windows 10 、macOS (包括使用 Silicon 芯片的 M1 设备,通过 Rosseta2 转译)。
此 Docker 容器经过测试,可在以下操作系统上运作:

* Linux (Ubuntu/Debian)
* Windows 10,11
* MacOS (包括 Apple Silicon M1/M2/M3).

此容器也经过测试,可在 `x64``ARM64` 基于的 CPU 架构上运作。

> [!IMPORTANT]
> 目前,Xbox Game Pass/Xbox 主机玩家无法加入专用服务器。
Expand Down
14 changes: 12 additions & 2 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ isExecutable "/palworld" || exit

cd /palworld || exit

# Get the architecture using dpkg
architecture=$(dpkg --print-architecture)

# Get host kernel page size
kernel_page_size=$(getconf PAGESIZE)

# Check kernel page size for arm64 hosts before running steamcmd
if [ "$architecture" == "arm64" ] && [ "$kernel_page_size" != "4096" ]; then
echo "Only ARM64 hosts with 4k page size is supported."
exit 1
fi

if [ "${UPDATE_ON_BOOT,,}" = true ]; then
printf "\e[0;32m%s\e[0m\n" "*****STARTING INSTALL/UPDATE*****"

Expand All @@ -70,8 +82,6 @@ if [ "${UPDATE_ON_BOOT,,}" = true ]; then
fi
fi

# Get the architecture using dpkg
architecture=$(dpkg --print-architecture)
# Check if the architecture is arm64
if [ "$architecture" == "arm64" ]; then
# create an arm64 version of ./PalServer.sh
Expand Down

0 comments on commit aa3040a

Please sign in to comment.