Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Refactor SignallingWebServer to a single docker file (#337) for UE5.2 (
Browse files Browse the repository at this point in the history
  • Loading branch information
Belchy06 committed Jul 27, 2023
1 parent 333c5fb commit 6051ea5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 38 deletions.
8 changes: 8 additions & 0 deletions SignallingWebServer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,20 @@ EXPOSE 443

# Expose TCP port 8888 for streamer WebSocket connections
EXPOSE 8888
EXPOSE 8888/udp

# Expose TCP port 8889 for connections from the SFU
EXPOSE 8889

# Expose TCP port 19302 for connections to Google's stun server
EXPOSE 19302

# Expose TCP port 9999 for connections from the Matchmaker
EXPOSE 9999

# Expose TCP port 19302 for connections from coturn
EXPOSE 3478
EXPOSE 3479

# Set the signalling server as the container's entrypoint
ENTRYPOINT ["/usr/local/bin/node", "/SignallingWebServer/cirrus.js"]
35 changes: 0 additions & 35 deletions SignallingWebServer/platform_scripts/bash/Dockerfile

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash
# Copyright Epic Games, Inc. All Rights Reserved.
BASH_LOCATION=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

pushd "${BASH_LOCATION}" > /dev/null

# When run from SignallingWebServer/platform_scripts/bash, this uses the SignallingWebServer directory
# as the build context so the Cirrus files can be successfully copied into the container image
docker build --network=host -t 'cirrus-webserver:latest' -f ./Dockerfile ../..

docker build --network=host -t 'cirrus-webserver:latest' -f "${BASH_LOCATION}/../../Dockerfile" "${BASH_LOCATION}/../../.."
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ else
peerConnectionOptions="{\""iceServers\"":[{\""urls\"":[\""stun:"${stunserver}"\""]}]}"
fi

docker run --name cirrus_latest --network host --rm --entrypoint /usr/local/bin/node cirrus-webserver /opt/SignallingWebServer/cirrus.js --peerConnectionOptions="${peerConnectionOptions}" --publicIp="${publicip}"
docker run --name cirrus_latest --network host --rm --entrypoint /usr/local/bin/node cirrus-webserver /SignallingWebServer/cirrus.js --peerConnectionOptions="${peerConnectionOptions}" --publicIp="${publicip}"

0 comments on commit 6051ea5

Please sign in to comment.