Skip to content

Commit 3ef6eba

Browse files
authored
Merge pull request #76 from feserr/main
Use the new sonroyaalmerol/steamcmd-arm64 and QoL changes.
2 parents fa9eaf4 + adedc62 commit 3ef6eba

4 files changed

Lines changed: 22 additions & 48 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Dockerfile that builds a Core Keeper Gameserver
33
###########################################################
44
FROM cm2network/steamcmd:root AS base-amd64
5-
FROM --platform=arm64 sonroyaalmerol/steamcmd-arm64:root-2024-11-24 AS base-arm64
5+
FROM --platform=arm64 sonroyaalmerol/steamcmd-arm64:root-2024-12-04 AS base-arm64
66

77
ARG TARGETARCH
88
FROM base-${TARGETARCH}

README.md

Lines changed: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ Explore an endless cavern of creatures, relics and resources in a mining sandbox
1616
This image currently includes the following Box64 build variants for the following devices:
1717

1818
- Generic [generic]
19-
- Raspberry Pi 5 [rpi5]
19+
- Raspberry Pi 3 [rpi3]
20+
- Raspberry Pi 4 [rpi4]
21+
- Raspberry Pi 5 (4K page size) [rpi5]
22+
- Raspberry Pi 5 (16K page size) [rpi5_16k]
2023
- M1 (M-Series) Mac [m1]
2124
- ADLink Ampere Altra (Oracle ARM CPUs) [adlink]
2225

@@ -31,7 +34,7 @@ Create two directories where you want to run your server :
3134

3235
### Using Docker CLI:
3336

34-
`docker run -d -e WORLD_NAME="Core Keeper Server" -e MAX_PLAYERS=5 -v $(pwd)/server-data:/home/steam/core-keeper-data --name core-keeper-dedicated escaping/core-keeper-dedicated`
37+
`docker run -d -e WORLD_NAME="Core Keeper Server" -e MAX_PLAYERS=5 -p 27015:27015/udp -v $(pwd)/server-data:/home/steam/core-keeper-data --name core-keeper-dedicated escaping/core-keeper-dedicated`
3538

3639
### Using Docker Compose
3740
Create a `docker-compose.yml` with the following content:
@@ -41,55 +44,25 @@ services:
4144
core-keeper:
4245
container_name: core-keeper-dedicated
4346
image: escaping/core-keeper-dedicated
47+
ports:
48+
- "$SERVER_PORT:$SERVER_PORT/udp"
4449
volumes:
4550
- server-files:/home/steam/core-keeper-dedicated
4651
- server-data:/home/steam/core-keeper-data
52+
restart: unless-stopped
4753
env_file:
48-
- ./core.env
49-
restart: always
54+
- path: override.env
55+
required: false
5056
stop_grace_period: 2m
5157
volumes:
5258
server-files:
5359
server-data:
5460
```
5561
56-
Create a `core.env` file, it should contain the environment variables for the dedicated server, see configuration for reference. Example:
62+
Create a `override.env` file and override the desired enviromental variables for the dedicated server, see configuration for reference. Example:
5763
```env
58-
PUID=1000
59-
PGID=1000
60-
ARM64_DEVICE=generic
61-
USE_DEPOT_DOWNLOADER=false
62-
WORLD_INDEX=0
63-
WORLD_NAME="Core Keeper Server"
64-
WORLD_SEED=0
65-
WORLD_MODE=0
66-
GAME_ID=""
67-
DATA_PATH="${STEAMAPPDATADIR}"
68-
MAX_PLAYERS=10
69-
SEASON=""
70-
SERVER_IP=""
71-
SERVER_PORT=""
72-
DISCORD_WEBHOOK_URL=""
73-
# Player Join
74-
DISCORD_PLAYER_JOIN_ENABLED=true
75-
DISCORD_PLAYER_JOIN_MESSAGE="$${char_name} ($${steamid}) has joined the server."
76-
DISCORD_PLAYER_JOIN_TITLE="Player Joined"
77-
DISCORD_PLAYER_JOIN_COLOR="47456"
78-
# Player Leave
79-
DISCORD_PLAYER_LEAVE_ENABLED=true
80-
DISCORD_PLAYER_LEAVE_MESSAGE="$${char_name} ($${steamid}) has disconnected. Reason: $${reason}."
81-
DISCORD_PLAYER_LEAVE_TITLE="Player Left"
82-
DISCORD_PLAYER_LEAVE_COLOR="11477760"
83-
# Server Start
84-
DISCORD_SERVER_START_ENABLED=true
85-
DISCORD_SERVER_START_MESSAGE="**World:** $${world_name}\n**GameID:** $${gameid}"
86-
DISCORD_SERVER_START_TITLE="Server Started"
87-
DISCORD_SERVER_START_COLOR="2013440"
88-
# Server Stop
89-
DISCORD_SERVER_STOP_ENABLED=true
90-
DISCORD_SERVER_STOP_MESSAGE=""
91-
DISCORD_SERVER_STOP_TITLE="Server Stopped"
92-
DISCORD_SERVER_STOP_COLOR="12779520"
64+
ARM64_DEVICE=rpi5
65+
MAX_PLAYERS=3
9366
```
9467

9568
On the folder which contains the files run `docker-compose up -d`.
@@ -115,10 +88,10 @@ These are the arguments you can use to customize server behavior with default va
11588
| WORLD_MODE | 0 | Sets the world mode for the world. Can be Normal (0), Hard (1), Creative (2), Casual (4). |
11689
| SEASON | No Default | Overrides current season by setting to any of None (0), Easter (1), Halloween (2), Christmas (3), Valentine (4), Anniversary (5), CherryBlossom (6), LunarNewYear(7).<br/>**Do not set this env var if you want real date season.** |
11790
| GAME_ID | "" | Game ID to use for the server. Need to be at least 28 characters and alphanumeric, excluding Y,y,x,0,O. Empty or not valid means a new ID will be generated at start. |
118-
| MAX_PLAYERS | 10 | Maximum number of players that will be allowed to connect to server. |
11991
| DATA_PATH | "/home/steam/core-keeper-data" | Save file location. |
92+
| MAX_PLAYERS | 10 | Maximum number of players that will be allowed to connect to server. |
12093
| SERVER_IP | No Default | Only used if port is set. Sets the address that the server will bind to. |
121-
| SERVER_PORT | No Default | What port to bind to. If not set, then the server will use the Steam relay network. If set the clients will connect to the server directly and the port needs to be open. |
94+
| SERVER_PORT | 27015 | What port to bind to. 27015 is the Steam relay port. |
12295
| DISCORD_WEBHOOK_URL | "" | Webhook url (Edit channel > Integrations > Create Webhook). |
12396
| DISCORD_PLAYER_JOIN_ENABLED | true | Enable/Disable message on player join |
12497
| DISCORD_PLAYER_JOIN_MESSAGE | `"$${char_name} ($${steamid}) has joined the server."` | Embed message |
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
PUID=1000
22
PGID=1000
3-
ARM64_DEVICE=adlink
3+
ARM64_DEVICE=generic
44
USE_DEPOT_DOWNLOADER=false
55
WORLD_INDEX=0
66
WORLD_NAME="Core Keeper Server"
77
WORLD_SEED=0
88
WORLD_MODE=0
99
GAME_ID=""
10-
DATA_PATH="${STEAMAPPDATADIR}"
10+
DATA_PATH="${STEAMAPPDATADIR:-/home/steam/core-keeper-data}"
1111
MAX_PLAYERS=10
1212
SEASON=""
1313
SERVER_IP=""
14-
SERVER_PORT=""
14+
SERVER_PORT="27015"
1515
DISCORD_WEBHOOK_URL=""
1616
# Player Join
1717
DISCORD_PLAYER_JOIN_ENABLED=true

docker-compose-example/docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ services:
88
- server-files:/home/steam/core-keeper-dedicated
99
- server-data:/home/steam/core-keeper-data
1010
env_file:
11-
- ./core.env
12-
restart: always
11+
- path: override.env
12+
required: false
13+
restart: unless-stopped
1314
stop_grace_period: 2m
1415
volumes:
1516
server-files:

0 commit comments

Comments
 (0)