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