You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#JIRA UE-138171 #rb Luke.Bermingham, Aidan.Possemiers [FYI] Mattias.Jansson #preflight trivial #ROBOMERGE-AUTHOR: sandor.hadas #ROBOMERGE-SOURCE: CL 18705692 in //UE5/Release-5.0/... via CL 18705717 via CL 18706245 #ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472) [CL 18706262 by sandor hadas in ue5-main branch]
43 lines
1.8 KiB
Bash
Executable File
43 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
# Get stun server data for passing to the container
|
|
source Start_Common.sh
|
|
set_start_default_values "n" "y" # Only STUN server defaults
|
|
use_args "$@"
|
|
|
|
localip=$(hostname -I | awk '{print $1}')
|
|
echo "Private IP: $localip"
|
|
|
|
turnport="${turnserver##*:}"
|
|
if [ -z "${turnport}" ]; then
|
|
turnport=3478
|
|
fi
|
|
echo "TURN port: ${turnport}"
|
|
echo ""
|
|
|
|
turnusername="PixelStreamingUser"
|
|
turnpassword="AnotherTURNintheroad"
|
|
realm="PixelStreaming"
|
|
process="turnserver"
|
|
arguments="-p ${turnport} -r $realm -X $publicip -E $localip -L $localip --no-cli --no-tls --no-dtls --pidfile /var/run/turnserver.pid -f -a -v -n -u ${turnusername}:${turnpassword}"
|
|
|
|
# Add arguments passed to script to arguments for executable
|
|
arguments+=" ${cirruscmd}"
|
|
|
|
# Start docker container by name using host networking
|
|
echo "Running: ${process} ${arguments}"
|
|
|
|
# Get the docker image
|
|
docker pull coturn/coturn
|
|
|
|
# Start the TURN server
|
|
#docker run --name coturn_latest --network host -it --entrypoint /bin/bash coturn/coturn
|
|
#docker run --name coturn_latest --network host --rm -a stdin -a stdout -a stderr --entrypoint "sudo mkdir -p /var/run" coturn/coturn ""
|
|
#docker run --name coturn_latest --network host --rm -a stdin -a stdout -a stderr --entrypoint "/bin/ls" coturn/coturn "/var/"
|
|
|
|
docker run --name coturn_latest --network host --rm -a stdin -a stdout -a stderr --entrypoint "${process}" coturn/coturn "${arguments}"
|
|
|
|
#docker run --name coturn_latest --network host --rm -a stdin -a stdout -a stderr --entrypoint "/bin/bash" coturn/coturn "ls -latr /var/run/"
|
|
#docker run --name coturn_latest --network host --rm -a stdin -a stdout -a stderr --entrypoint "sudo chown ubuntu:ubuntu /var/run/turnserver.pid | sudo chmod +x /var/run/turnserver.pid | ${process}" coturn/coturn "${arguments}"
|