Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the port of nmos-testing? #850

Open
DaveHu-TVU opened this issue Apr 17, 2024 · 1 comment
Open

How to change the port of nmos-testing? #850

DaveHu-TVU opened this issue Apr 17, 2024 · 1 comment

Comments

@DaveHu-TVU
Copy link

I tried to change nmos-testing->ports to 9876 in docker-compose.yml, but it doesn't seem to work. When I re-execute docker-compose up, the nmos-testing port is still 5000

docker-compose.yml.txt

@garethsb
Copy link
Contributor

More than one port is used, since there are mock NMOS Registries and other services created by the testing tool in addition to its Web UI. In order to change these you need to create a UserConfig.py and mount it into the container. This is shown in your docker-compose.yml and there is some documentation at e.g. Usage - Configuration. The specific port related config parameters are described in:

# The testing tool uses multiple ports to run mock services. This sets the lowest of these, which also runs the GUI
# Note that changing this from the default of 5000 also requires changes to supporting files such as
# test_data/BCP00301/ca/intermediate/openssl.cnf and any generated certificates.
# The mock DNS server port cannot be modified from the default of 53.
PORT_BASE = 5000
# As part of the Controller tests the Mock Registry will create Subscription WebSockets on subscription requests
# This will create up to 6 WebSocket servers starting at WEBSOCKET_PORT_BASE up to WEBSOCKET_PORT_BASE + 5
WEBSOCKET_PORT_BASE = 6000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants