Skip to content

Commit

Permalink
feat(satisfactory): support update 1.0
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Sthamer <[email protected]>
  • Loading branch information
P4sca1 committed Sep 10, 2024
1 parent d9353e4 commit cb3c80e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
15 changes: 7 additions & 8 deletions satisfactory/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM ubuntu:22.04

RUN export DEBIAN_FRONTEND=noninteractive \
&& groupadd -g 1000 ips-hosting \
&& useradd -m -d /home/ips-hosting -u 1000 -g 1000 ips-hosting \
&& apt-get update \
&& apt-get install -y lib32gcc-s1 wget tar tzdata libsdl2-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/* /tmp/* /var/tmp/*
&& groupadd -g 1000 ips-hosting \
&& useradd -m -d /home/ips-hosting -u 1000 -g 1000 ips-hosting \
&& apt-get update \
&& apt-get install -y lib32gcc-s1 wget tar tzdata libsdl2-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/* /tmp/* /var/tmp/*

COPY --chown=ips-hosting:ips-hosting --chmod=777 ./entrypoint.sh /ips-hosting/

Expand All @@ -16,8 +16,7 @@ VOLUME /home/ips-hosting

ENV HOME=/home/ips-hosting

EXPOSE 15777/udp
EXPOSE 15000/udp
EXPOSE 7777/udp
EXPOSE 7777/tcp

ENTRYPOINT ["/bin/bash", "/ips-hosting/entrypoint.sh"]
5 changes: 2 additions & 3 deletions satisfactory/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ The container is run as a non-root user by default and the user running inside t

## Ports

- 15777/udp (query)
- 15000/udp (beacon)
- 7777/tcp (http)
- 7777/udp (game)

You can change the ports with the `QUERY_PORT`, `BEACON_PORT` and `PORT` environment variables.
You can change the ports with the `PORT` environment variable. Both ports will always use the same number.

## Env variables

Expand Down
15 changes: 4 additions & 11 deletions satisfactory/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,10 @@ function update() {
function start() {
cd /home/ips-hosting/Engine/Binaries/Linux

# Continue supporting Update 7. Update 8 switched to Unreal Engine 5 and the executable was renamed.
local executable="./UnrealServer-Linux-Shipping"
if [ ! -f "${executable}" ]; then
executable="./UE4Server-Linux-Shipping"
fi

local start_command="${executable} FactoryGame -ServerQueryPort=${QUERY_PORT:-15777} -BeaconPort=${BEACON_PORT:-15000} -Port=${PORT:-7777} -DisablePacketRouting"

export UE4_PROJECT_ROOT="/home/ips-hosting"
export LD_LIBRARY_PATH="/home/ips-hosting/linux64:$LD_LIBRARY_PATH"

local start_command="./FactoryServer-Linux-Shipping FactoryGame -Port=${PORT:-7777} -DisablePacketRouting"

export UE_PROJECT_ROOT="/home/ips-hosting"

echo "$start_command"
eval "$start_command"
}
Expand Down

0 comments on commit cb3c80e

Please sign in to comment.