Ready for vrsingd
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -19,21 +19,22 @@ VOLUME [ "/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/S
|
|||||||
# Expose Ports
|
# Expose Ports
|
||||||
EXPOSE 9876/udp
|
EXPOSE 9876/udp
|
||||||
EXPOSE 9877/udp
|
EXPOSE 9877/udp
|
||||||
|
EXPOSE 2169/tcp
|
||||||
|
|
||||||
# Running as a bash script works, does not work otherwise
|
# Running as a bash script works, does not work otherwise
|
||||||
COPY ./init.sh /
|
COPY ./scripts/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 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/adminlist.txt /root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/
|
||||||
COPY ./config/banlist.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
|
# Start the program, check for update, backup configs, etc
|
||||||
COPY ./start.sh /
|
# COPY ./scripts/start.sh /
|
||||||
RUN chmod +x /start.sh
|
# RUN chmod +x /start.sh
|
||||||
|
|
||||||
# Entry Point Script
|
# Entry Point Script
|
||||||
CMD /start.sh
|
# CMD /start.sh
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"Name": "Hangout Excuse",
|
"Name": "Total Hangout Excuse",
|
||||||
"Description": "A great reason to hangout and what not",
|
"Description": "A great reason to hangout and what not",
|
||||||
"Port": 9876,
|
"Port": 9876,
|
||||||
"QueryPort": 9877,
|
"QueryPort": 9877,
|
||||||
|
|||||||
10
scripts/start.sh
Normal file
10
scripts/start.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
HOST_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/ServerHostSettings.json
|
||||||
|
GAME_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/ServerGameSettings.json
|
||||||
|
ADMIN_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/adminlist.txt
|
||||||
|
BAN_FILE=/root/.wine/drive_c/vrisingserver/VRisingServer_Data/StreamingAssets/Settings/banlist.txt
|
||||||
|
if [ -f "$HOST_FILE" -a -f "$GAME_FILE" -a -f "$ADMIN_FILE" -a -f "$BAN_FILE"]; then
|
||||||
|
echo "Starting Server"
|
||||||
|
xvfb-run -a wine /root/.wine/drive_c/vrisingserver/VRisingServer.exe
|
||||||
|
else
|
||||||
|
echo "Copy over config files to the settings folder"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user