jlsage
This commit is contained in:
parent
3a700f73be
commit
333b8de032
@ -1,5 +1,5 @@
|
||||
{
|
||||
"LastFileLoaded": null,
|
||||
"LastFileLoaded": "Bar_271098218",
|
||||
"LoadIntoMultiplayer": true,
|
||||
"ForgetLastFileOnTitle": true
|
||||
}
|
||||
}
|
@ -5,9 +5,12 @@ services:
|
||||
build: docker
|
||||
container_name: stardew
|
||||
environment:
|
||||
- VNCPASS=nyanyanya
|
||||
- "VNC_PASSWORD=2342"
|
||||
- "DISPLAY_HEIGHT=1000"
|
||||
- "DISPLAY_WIDTH=1000"
|
||||
ports:
|
||||
- 5900:5900
|
||||
- 5902:5900
|
||||
- 5801:5800
|
||||
- 24642:24642/udp
|
||||
volumes:
|
||||
- ./config:/root/.config/i3/config
|
||||
|
@ -1,15 +1,33 @@
|
||||
FROM mono:latest
|
||||
# Pull base image.
|
||||
FROM jlesage/baseimage-gui:debian-10
|
||||
|
||||
# Install xterm.
|
||||
#RUN add-pkg xterm
|
||||
|
||||
# Copy the start script.
|
||||
#COPY startapp.sh /startapp.sh
|
||||
|
||||
# Set the name of the application.
|
||||
ENV APP_NAME="StardewValley"
|
||||
|
||||
|
||||
|
||||
#FROM mono:latest
|
||||
|
||||
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
|
||||
|
||||
# Game + ModLoader 1.5.4 3.8.3
|
||||
RUN mkdir -p /data/Stardew && \
|
||||
mkdir -p /data/nexus && \
|
||||
wget https://eris.cc/Stardew_latest.tar.gz -qO /data/latest.tar.gz && \
|
||||
tar xf /data/latest.tar.gz -C /data/Stardew && \
|
||||
rm /data/latest.tar.gz && \
|
||||
wget https://github.com/Pathoschild/SMAPI/releases/download/3.8.3/SMAPI-3.8.3-installer.zip -qO /data/nexus.zip && \
|
||||
rm /data/latest.tar.gz
|
||||
|
||||
RUN apt-get install -y mono-complete
|
||||
|
||||
RUN wget https://github.com/Pathoschild/SMAPI/releases/download/3.8.3/SMAPI-3.8.3-installer.zip -qO /data/nexus.zip && \
|
||||
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.8.3\ installer/internal/unix-install.exe"
|
||||
|
||||
@ -22,7 +40,7 @@ RUN unzip /data/alwayson.zip -d /data/Stardew/Stardew\ Valley/Mods && \
|
||||
unzip /data/unlimitedplayers.zip -d /data/Stardew/Stardew\ Valley/Mods && \
|
||||
unzip /data/autoloadgame.zip -d /data/Stardew/Stardew\ Valley/Mods && \
|
||||
rm /data/alwayson.zip /data/unlimitedplayers.zip /data/autoloadgame.zip
|
||||
RUN chmod +x /data/Stardew/Stardew\ Valley/StardewValley
|
||||
RUN chmod +x /data/Stardew/Stardew\ Valley/StardewValley && \
|
||||
chmod -R 777 /data/Stardew/
|
||||
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
COPY docker-entrypoint.sh /startapp.sh
|
||||
|
@ -1,17 +1,17 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /tmp/.X10-lock ]; then rm /tmp/.X10-lock; fi
|
||||
Xvfb :10 -screen 0 1580x920x24 -ac &
|
||||
#if [ -f /tmp/.X10-lock ]; then rm /tmp/.X10-lock; fi
|
||||
#Xvfb :10 -screen 0 1580x920x24 -ac &
|
||||
|
||||
while [ ! -z "`xdpyinfo -display :10 2>&1 | grep 'unable to open display'`" ]; do
|
||||
echo Waiting for display;
|
||||
sleep 5;
|
||||
done
|
||||
#while [ ! -z "`xdpyinfo -display :10 2>&1 | grep 'unable to open display'`" ]; do
|
||||
# echo Waiting for display;
|
||||
# sleep 5;
|
||||
#done
|
||||
|
||||
export DISPLAY=:10.0
|
||||
x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -passwd $VNCPASS -shared &
|
||||
sleep 5
|
||||
i3 &
|
||||
export XAUTHORITY=~/.Xauthority
|
||||
TERM=xterm
|
||||
#export DISPLAY=:10.0
|
||||
#x11vnc -display :10 -rfbport 5900 -rfbportv6 -1 -no6 -noipv6 -httpportv6 -1 -forever -desktop StardewValley -cursor arrow -passwd $VNCPASS -shared &
|
||||
#sleep 5
|
||||
#i3 &
|
||||
#export XAUTHORITY=~/.Xauthority
|
||||
#TERM=xterm
|
||||
/data/Stardew/Stardew\ Valley/StardewValley
|
||||
|
Loading…
Reference in New Issue
Block a user