Last active
November 30, 2019 17:34
-
-
Save Wildcarde/9c224457d35b9b0ecf69 to your computer and use it in GitHub Desktop.
Unreal Tournament Docker Container Files - Currently this makes a free standing server, a future update will be enable handling launching hubs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker stop ut4 && docker rm ut4 && docker rmi wildcarde/ut4server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:6 | |
MAINTAINER Garrett McGrath <gmcgrath815+docker at gmail.com> | |
RUN yum install -y wget unzip; /usr/bin/wget "<unreal linux source link here>" -O temp.zip; /usr/bin/unzip temp.zip; rm temp.zip | |
RUN yum install -y Xvfb xorg-X11-server-Xvfb which | |
RUN chmod +x /LinuxServer/Engine/Binaries/Linux/* | |
#this is where you SHOULD be able to mount the confs file and have it 'just work' that's not the case however. | |
#VOLUME ["/LinuxServer/UnrealTournament/Saved/Config/LinuxServer"] | |
#stupid hack version of problem fixing | |
#This hack works around the docker version of the server dumping all it's confs inside | |
#/LinuxServer/UnrealTournament instead of inside /LinuxServer/UnrealTournament/Saved/Config/LinuxServer because reasons? | |
VOLUME ["/conf"] | |
#if reason for issue is located this should just be symlinked to /LinuxServer above | |
RUN ln -s /conf/Engine.ini /LinuxServer/UnrealTournament/Engine.ini; \ | |
ln -s /conf/Game.ini /LinuxServer/UnrealTournament/Game.ini; \ | |
ln -s /conf/GameUserSettings.ini /LinuxServer/UnrealTournament/GameUserSettings.ini; \ | |
ln -s /conf/Compat.ini /LinuxServer/UnrealTournament/Compat.ini; \ | |
ln -s /conf/DeviceProfiles.ini /LinuxServer/UnrealTournament/DeviceProfiles.ini; \ | |
ln -s /conf/Input.ini /LinuxServer/UnrealTournament/Input.ini; \ | |
ln -s /conf/Lightmass.ini /LinuxServer/UnrealTournament/Lightmass.ini; \ | |
ln -s /conf/Rules.ini /LinuxServer/UnrealTournament/Rules.ini; \ | |
ln -s /conf/SampleGameMode.ini /LinuxServer/UnrealTournament/SampleGameMode.ini; \ | |
ln -s /conf/Scalability.ini /LinuxServer/UnrealTournament/Scalability.ini | |
#this saves a bunch of typing when trying to configure the system | |
RUN ln -s /conf /LinuxServer/UnrealTournament/Saved/Config/LinuxServer | |
EXPOSE 7777/udp 15000/udp 7787/udp | |
CMD ["/usr/bin/xvfb-run","/LinuxServer/Engine/Binaries/Linux/UE4Server-Linux-Test","UnrealTournament","DM-DeckTest?Game=DM?MaxPlayers=20?MaxSpectators=15","-log","-port=7777"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[/Script/UnrealTournament.UTGameEngine] | |
bFirstRun=False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker stop ut4 && docker rm ut4 | |
docker build -t wildcarde/ut4server . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
docker stop ut4 && docker rm ut4 | |
docker run -t=true -d --restart=always --name ut4 -v /zfswdred/nfs/dockdata/ut4serv/LinuxConfs:/conf --net=host wildcarde/ut4server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment