diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 152e4d4..06eddff 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -69,10 +69,10 @@ jobs: - name: Test Run the Docker Image if: ${{ success() && matrix.system == 'docker' }} continue-on-error: true - timeout-minutes: 7 + timeout-minutes: 10 run: | # Start a timed shutdown signal - (sleep 330 && docker exec \ + (sleep 360 && docker exec \ zomboid-dedicated-server bash -c \ "rcon -a $(cat ZomboidConfig/ip.txt):\${RCON_PORT} -p \${RCON_PASSWORD} quit") & @@ -131,10 +131,10 @@ jobs: - name: Test Run the Docker-Compose Image if: ${{ success() && matrix.system == 'docker-compose' }} continue-on-error: true - timeout-minutes: 7 + timeout-minutes: 10 run: | # Start a timed shutdown signal - (sleep 330 && docker exec \ + (sleep 360 && docker exec \ zomboid-dedicated-server bash -c \ "rcon -a $(cat ZomboidConfig/ip.txt):\${RCON_PORT} -p \${RCON_PASSWORD} quit") & @@ -156,10 +156,10 @@ jobs: - name: Test Run the Podman Image if: ${{ success() && matrix.system == 'podman' }} continue-on-error: true - timeout-minutes: 7 + timeout-minutes: 10 run: | # Start a timed shutdown signal - (sleep 330 && podman exec \ + (sleep 360 && podman exec \ zomboid-dedicated-server bash -c \ "rcon -a $(cat ZomboidConfig/ip.txt):\${RCON_PORT} -p \${RCON_PASSWORD} quit") & diff --git a/README.md b/README.md index c3cdff9..eea108c 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ recommended for ease of configuration. | `MAP_NAMES` | Map Names (e.g. North;South) | map1;map2;map3 | Muldraugh, KY | | `MAX_RAM` | Maximum amount of RAM to be used | ([0-9]+)m | 4096m | | `STEAM_VAC` | Use Steam VAC anti-cheat | (true|false) | true | +| `TZ` | Set the timezone for the container | [A-Z]+ | UTC | | `USE_STEAM` | Create a Steam Server, or a Non-Steam Server | (true|false) | true | ### Config file environment variables @@ -237,6 +238,7 @@ The following are instructions for running the server using the Docker image. [--env=SERVER_NAME=] \ [--env=SERVER_PASSWORD=] \ [--env=STEAM_VAC=] \ + [--env=TZ=] \ [--env=USE_STEAM=] \ docker.io/renegademaster/zomboid-dedicated-server[:] ``` diff --git a/docker-compose.yaml b/docker-compose.yaml index 8d9a6a4..f094795 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -48,6 +48,7 @@ services: - "STEAM_VAC=true" - "UDP_PORT=16262" - "USE_STEAM=true" + - "TZ=UTC" ports: - target: 16261 published: 16261 diff --git a/docker/zomboid-dedicated-server.Dockerfile b/docker/zomboid-dedicated-server.Dockerfile index ba792fe..1bb3f63 100644 --- a/docker/zomboid-dedicated-server.Dockerfile +++ b/docker/zomboid-dedicated-server.Dockerfile @@ -37,7 +37,7 @@ COPY src /home/steam/ # Install Python, and take ownership of rcon binary RUN apt-get update && apt-get install -y --no-install-recommends \ - python3-minimal \ + python3-minimal iputils-ping tzdata \ && apt-get autoremove -y \ && rm -rf /var/lib/apt/lists/*