From 1fec55efc0ac7c9a9064191139387e52035835b8 Mon Sep 17 00:00:00 2001 From: Merith-TK Date: Tue, 10 Dec 2024 05:00:37 +0000 Subject: [PATCH] update with fix for steamcmd refusing to update files --- Dockerfile | 3 ++- docker-compose.yml | 21 ++++++++++----------- scripts/00_setup.sh | 5 +++++ 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index eeb991f..afe92f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,8 @@ RUN DEBIAN_FRONTEND=noninteractive \ libopus0 \ locales \ mono-complete \ - opus-tools + opus-tools \ + sudo # make data directories RUN mkdir -p /data/resonite /data/steamcmd diff --git a/docker-compose.yml b/docker-compose.yml index 701058b..481997d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,7 @@ services: resonite: # build: . image: git.merith.xyz/oci/resonite:nightly + container_name: resonite network_mode: host stdin_open: true @@ -9,25 +10,20 @@ services: volumes: # general data - ./data:/data:rw - + # have volume entires in dockerfile, if removed this data will persist # until the volume is removed - ./data/resonite:/data/resonite:rw - ./data/steamcmd:/data/steamcmd:rw - # mount scripts for runtime, optional + # mount scripts for runtime, optional - ./scripts:/scripts:ro ## EDIT THESE ENVIRONMENT VARIABLES ## environment: - # DO NOT REMOVE THIS VALUE - # RUN_AS: 1000 - # THIS CONTROLS THE USER ID THAT THE SERVER RUNS AS - # This is specifically so *you* have control over the files] - ## Options ## ## These have their defualts set in the Dockerfile, and are safe to remove from this file - + # Prevents SteamCMD from updating the gamefiles DISABLE_STEAMCMD: "false" @@ -39,12 +35,15 @@ services: COMMAND: "/scripts/99_start.sh" # Wether to enable the Resonite Mod Loader - RESONITE_MOD_LOADER: false + RESONITE_MOD_LOADER: true + # list of mods to load, MOD_URLS: | https://github.com/New-Project-Final-Final-WIP/HeadlessTweaks/releases/latest/download/HeadlessTweaks.dll - https://github.com/Raidriar796/StresslessHeadless/releases/latest/download/StresslessHeadless.dll - + + # Controls the UID:GID of the headless, defaults to `root` if not set + RUN_AS: 1000 + # Does not allow the server to start, helpful for debugging the container as a whole STOP_LAUNCH: false diff --git a/scripts/00_setup.sh b/scripts/00_setup.sh index 0168e36..11e8183 100755 --- a/scripts/00_setup.sh +++ b/scripts/00_setup.sh @@ -18,6 +18,11 @@ export DEFAULT_RESONITE_ARGS="-LogsPath /data/resonite/logs \ $RESONITE_ARGS" mkdir -p /data/home /data/resonite /data/steamcmd + +## set /data to be owned by root user during install +# required because steamcmd checks if folder is owned by current user +chown root:root /data/ -R + ## Have to do this here, as otherwise stuff doesnt work for some reason # using source so runtime vars can be updated as needed source /scripts/01_install.sh