This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
14 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
# Use the current Long Term Support (LTS) version of Node.js | ||
FROM node:lts | ||
|
||
# Copy the signalling server and frontend source code from the build context | ||
COPY /SignallingWebServer /SignallingWebServer | ||
COPY /Frontend /Frontend | ||
|
||
# Install the dependencies for the signalling server and build the frontend | ||
RUN SignallingWebServer/platform_scripts/bash/setup.sh --build | ||
|
||
# Expose TCP ports 80 and 443 for player WebSocket connections and web server HTTP(S) access | ||
EXPOSE 80 | ||
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"] | ||
ENTRYPOINT ["/usr/local/bin/node", "/SignallingWebServer/cirrus.js"] |
This file was deleted.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
SignallingWebServer/platform_scripts/bash/docker-build-cirrus.sh
This file contains 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
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}/../../.." |
This file contains 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