minor cleanup and 100%cpu bug fixed with strace. Yes, FUCKING, strace! because debugging is obviously not possible in fucking schrödingers docker containers, the debugging will now be part of running this shit

This commit is contained in:
norimicry 2021-01-24 02:25:32 +01:00
parent 505c7ec09a
commit c236520c62
3 changed files with 10 additions and 11 deletions

View File

@ -6,8 +6,8 @@ services:
container_name: stardew container_name: stardew
environment: environment:
- "VNC_PASSWORD=nyanyanya" - "VNC_PASSWORD=nyanyanya"
- "DISPLAY_HEIGHT=1000" - "DISPLAY_HEIGHT=640"
- "DISPLAY_WIDTH=1400" - "DISPLAY_WIDTH=800"
## Always On Server mod ## Always On Server mod
# Removing this will probably defeat the point of ever using this? # Removing this will probably defeat the point of ever using this?
- ENABLE_ALWAYSONSERVER_MOD=${ENABLE_ALWAYSONSERVER_MOD-true} - ENABLE_ALWAYSONSERVER_MOD=${ENABLE_ALWAYSONSERVER_MOD-true}

View File

@ -16,7 +16,8 @@ ENV APP_NAME="StardewValley"
RUN apt-get update RUN apt-get update
#RUN apt-get install -y wget unzip xvfb x11vnc xterm i3 #RUN apt-get install -y wget unzip xvfb x11vnc xterm i3
RUN apt-get install -y wget unzip tar RUN apt-get install -y wget unzip tar strace mono-complete xterm
RUN apt-get install -y gettext-base jq netcat procps
# Game + ModLoader 1.5.4 3.8.3 # Game + ModLoader 1.5.4 3.8.3
RUN mkdir -p /data/Stardew && \ RUN mkdir -p /data/Stardew && \
@ -25,13 +26,10 @@ RUN mkdir -p /data/Stardew && \
tar xf /data/latest.tar.gz -C /data/Stardew && \ tar xf /data/latest.tar.gz -C /data/Stardew && \
rm /data/latest.tar.gz rm /data/latest.tar.gz
RUN apt-get install -y mono-complete
RUN wget https://github.com/Pathoschild/SMAPI/releases/download/3.9.0/SMAPI-3.9.0-installer.zip -qO /data/nexus.zip && \ RUN wget https://github.com/Pathoschild/SMAPI/releases/download/3.9.0/SMAPI-3.9.0-installer.zip -qO /data/nexus.zip && \
unzip /data/nexus.zip -d /data/nexus/ && \ unzip /data/nexus.zip -d /data/nexus/ && \
/bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /usr/bin/mono /data/nexus/SMAPI\ 3.9.0\ installer/internal/unix-install.exe" /bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /usr/bin/mono /data/nexus/SMAPI\ 3.9.0\ installer/internal/unix-install.exe"
RUN apt-get install -y gettext-base jq netcat procps
# Add Mods # Add Mods

View File

@ -30,10 +30,11 @@ done
/opt/tail-smapi-log.sh & /opt/tail-smapi-log.sh &
# Try fixing Backup Permissions
chmod -R 777 /data/Stardew/Stardew\ Valley/save-backups
# Ready to start! # Ready to start!
/data/Stardew/Stardew\ Valley/StardewValley
sleep 233 export XAUTHORITY=~/.Xauthority
TERM=xterm
strace /data/Stardew/Stardew\ Valley/StardewValley
sleep 233333333333333