diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index c376f60..0000000 --- a/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM mono:latest - -RUN mkdir -p /data/Stardew -RUN mkdir -p /data/nexus - -RUN apt-get update -RUN apt-get install -y wget unzip xvfb x11vnc xterm i3 - -CMD /data/Stardew/Stardew\ Valley/StardewValley diff --git a/docker-compose.yml b/docker-compose.yml index a6f9a0c..0de51a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,11 +7,11 @@ services: - 5902:5900 - 24642:24642/udp volumes: - - /data/valley:/data + - ./valley:/data - ./init.sh:/init.sh - ./asound.conf:/etc/asound.conf - ./config:/root/.config/i3/config - - /data/valley_saves:/root/.config/StardewValley/Saves/ + - ./valley_saves:/root/.config/StardewValley/Saves/ devices: - /dev/snd:/dev/snd entrypoint: diff --git a/init.sh b/init.sh deleted file mode 100755 index b043666..0000000 --- a/init.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -if [ ! -d /data/Stardew ]; then - - echo "Downloading Game" - mkdir -p /data/Stardew - wget https://eris.cc/Stardew_latest.tar -qO /data/latest.tar - - echo "Unpacking" - tar xvf /data/latest.tar -C /data/Stardew -fi - -if [ ! -f /data/nexus.tar ]; then - echo "Downloading Modloader" - wget https://github.com/Pathoschild/SMAPI/releases/download/2.11.1/SMAPI-2.11.1-installer.zip -qO /data/nexus.zip - - echo "Unpacking Modloader" - mkdir -p /data/nexus - unzip /data/nexus.zip -d /data/nexus/ - - echo "Installing Modloader" - /bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /usr/bin/mono /data/nexus/SMAPI\ 2.11.1\ installer/internal/unix-install.exe" -fi - -if [ ! -f /data/mods.tar -o ! -f /data/always.zip ]; then - echo "Downloading Always On Mod" - wget https://eris.cc/always.zip -qO /data/always.zip - wget https://eris.cc/mods.tar -qO /data/mods.tar - unzip /data/always.zip -d /data/Stardew/Stardew\ Valley/Mods - tar xvf /data/mods.tar -C /data/Stardew/Stardew\ Valley/Mods/ -fi - -apt-get install -y xterm i3 - -Xvfb :10 -screen 0 1000x1000x24 -ac & -export DISPLAY=:10.0 -x11vnc -display :10 -forever -shared -loop & -sleep 10 -i3 & - -TERM=xterm -/data/Stardew/Stardew\ Valley/StardewValley