Skip to content

Instantly share code, notes, and snippets.

@azzaka
Forked from Wildcarde/Dockerfile
Last active February 27, 2017 13:32
Show Gist options
  • Save azzaka/45c5b37f798adb7d7e90fad44fdc7174 to your computer and use it in GitHub Desktop.
Save azzaka/45c5b37f798adb7d7e90fad44fdc7174 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
#!/bin/bash
docker stop ut4 && docker rm ut4 && docker rmi wildcarde/ut4server
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 13000/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"]
[/Script/UnrealTournament.UTGameEngine]
bFirstRun=False
#!/bin/bash
docker stop ut4 && docker rm ut4
docker build -t wildcarde/ut4server .
#! /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