Ut4HubServerDocker/README.md

68 lines
1.4 KiB
Markdown

# Installation
1. Update Ubuntu Packages:
```<language>
sudo apt update
```
2. Install Git
```<language>
sudo apt install git -y
```
3. Clone (download) Repo Code:
```<language>
git clone https://git.polycompsol.com:3000/basshound/Ut4HubServerDocker.git
```
4. Change directory to go inside repo:
```<language>
cd Ut4HubServerDocker
```
5. Modify game config files accordingly. Primarily Game.ini, though Rulesets and other config can also be specified here.
6. To perform one step configure/run:
```<language>
sudo ./autoBuildDeploy
```
This will install Docker, build the docker image, download pak files (from pakFileList), create firewall rules, and deploy docker container.
# Stopping / Restarting Server
To stop the Server
```<language>
sudo docker stop ut4hubserver
```
To start the server
```<language>
sudo ./runServer
```
Restarting the server can be done by stopping and then starting using the above commands.
# Viewing Logs
You can view a simple output of the log file by running:
```<language>
sudo ./viewLog
```
This is simply a wrapper for the docker command:
```<language>
docker exec -it ut4hubserver cat /home/ut/LinuxServer/UnrealTournament/Saved/Logs/UnrealTournament.log
```
To tail the logs (to have screen refresh with any update):
```<language>
docker exec -it ut4hubserver tail -F /home/ut/LinuxServer/UnrealTournament/Saved/Logs/UnrealTournament.log
```