Skip to content

Commit 2b96ff4

Browse files
Merge pull request #11 from indifferentbroccoli/Add-Beta-Branch-Support
Add Beta Branch Support
2 parents 761755c + fda9d87 commit 2b96ff4

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ ENV HOME=/home/steam \
1717
GAME_PORT=7777 \
1818
RELIABLE_PORT=7778 \
1919
SERVER_IP=0.0.0.0 \
20-
GENERATE_SETTINGS=true
20+
GENERATE_SETTINGS=true \
21+
BRANCH=public
2122

2223
COPY ./scripts /home/steam/server/
2324

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,27 @@ docker run -d \
8686
-p 7777:7777/udp \
8787
-p 7777:7777/tcp \
8888
-p 7778:7778/tcp \
89+
-e PUID=1000 \
90+
-e PGID=1000 \
8991
-e GENERATE_SETTINGS=true \
92+
-e BRANCH=public \
9093
--env-file .env \
9194
-v ./satisfactory/server-files:/satisfactory \
92-
-v ./satisfactory/server-data:/home/steam/.config/Epic/FactoryGame/Saved/SaveGames
95+
-v ./satisfactory/server-data:/home/steam/.config/Epic/FactoryGame/Saved/SaveGames \
9396
indifferentbroccoli/satisfactory-server-docker
9497
```
9598

9699
## Environment Variables
97100

101+
### Container settings
102+
103+
| Variable | Default | Description |
104+
|---------------------|----------|---------------------------------------------------------------------------------|
105+
| `PUID` | Required | User ID to run the server as |
106+
| `PGID` | Required | Group ID to run the server as |
107+
| `GENERATE_SETTINGS` | `true` | Generate settings from environment variables |
108+
| `BRANCH` | `public` | Steam branch to install (`public` for stable or `experimental` for experimental) |
109+
98110
### Server settings
99111

100112
| Variable | Default | Description |

scripts/functions.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ Log() {
4141

4242
install() {
4343
LogAction "Starting server install"
44-
/home/steam/steamcmd/steamcmd.sh +runscript /home/steam/server/install.scmd
44+
LogInfo "Installing branch: ${BRANCH}"
45+
envsubst < /home/steam/server/install.scmd > /tmp/install.scmd
46+
/home/steam/steamcmd/steamcmd.sh +runscript /tmp/install.scmd
4547
}
4648

4749
cpu_check(){

scripts/install.scmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Do not shutdown on a failed command
2-
@ShutdownOnFailedCommand 0
1+
// Shutdown on a failed command so restart policy can pick it up
2+
@ShutdownOnFailedCommand 1
33

44
//No password as this is unattended
55
@NoPromptForPassword 1
@@ -10,6 +10,6 @@ force_install_dir /satisfactory
1010
login anonymous
1111

1212
// Install/Update the Satisfactory Dedicated Server
13-
app_update 1690800 validate
13+
app_update 1690800 -beta ${BRANCH} validate
1414

1515
quit

0 commit comments

Comments
 (0)