Good so far?

This commit is contained in:
2022-05-23 14:30:04 -05:00
parent e2854c04ae
commit 987cfd388b
5 changed files with 25 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
settings
saves

View File

@@ -1,20 +1,39 @@
FROM clearlinux:latest FROM clearlinux:latest
# Dependencies
RUN swupd update RUN swupd update
RUN swupd bundle-add x11-server libarchive wget wine RUN swupd bundle-add x11-server libarchive wget wine
# Directories
RUN mkdir -p /root/.wine/drive_c/steamcmd RUN mkdir -p /root/.wine/drive_c/steamcmd
RUN mkdir -p /root/.wine/drive_c/users/root/AppData/LocalLow/'Stunlock Studios'/VRisingServer/Settings RUN mkdir -p /root/.wine/drive_c/users/root/AppData/LocalLow/'Stunlock Studios'/VRisingServer/Saves
RUN mkdir -p /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings
# Steamcmd
RUN wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip | bsdtar -xvf- -C /root/.wine/drive_c/steamcmd/ RUN wget -qO- https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip | bsdtar -xvf- -C /root/.wine/drive_c/steamcmd/
# Persist Volumes
VOLUME [ "/root/.wine/drive_c/users/root/AppData/LocalLow/Stunlock Studios/VRisingServer/Saves/"]
VOLUME [ "/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/" ]
# Expose Ports
EXPOSE 27015/udp
EXPOSE 27016/udp
# Running as a bash script works, does not work otherwise
COPY ./init.sh / COPY ./init.sh /
RUN chmod +x /init.sh RUN chmod +x /init.sh
RUN bash /init.sh || : RUN bash /init.sh || :
# Copy user configured settings
COPY ./config/ServerGameSettings.json /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/ COPY ./config/ServerGameSettings.json /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
COPY ./config/ServerHostSettings.json /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/ COPY ./config/ServerHostSettings.json /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
COPY ./config/adminlist.txt /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
COPY ./config/banlist.txt /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
# Start the program, check for update, backup configs, etc
COPY ./start.sh / COPY ./start.sh /
RUN chmod +x /start.sh RUN chmod +x /start.sh
EXPOSE 27015/udp # Entry Point Script
EXPOSE 27016/udp CMD /start.sh

0
config/adminlist.txt Normal file
View File

0
config/banlist.txt Normal file
View File

View File

@@ -1 +1,2 @@
# wine /root/.wine/drive_c/steamcmd/steamcmd.exe +force_install_dir "C:\VRisingServer" +login anonymous +app_update 1829350 +quit
xvfb-run wine /root/.wine/drive_c/vrisingserver/VRisingServer.exe xvfb-run wine /root/.wine/drive_c/vrisingserver/VRisingServer.exe