-
Notifications
You must be signed in to change notification settings - Fork 28
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
Allow control of the dockerized RTSP server #48
Comments
It sounds fine with me if separating RTSP server can make it simpler and maintainable. |
@ajcasagrande, thoughts? |
we don't need to modify the code device-usb-camera/cmd/res/configuration.toml Lines 108 to 110 in 0d2f133
building them together is simpler for some users, and that's just a reference build script implementation. |
I thought you were saying the I think it does make sense to keep it included, and have a flag or something that allows you to disable it. I'd assume the server can be manually configured by volume mounting over the Side note, the way the Dockerfile is written now should be adjusted to take a build arg of the version and not be hard-coded. How would a non-bundled one fit in with |
Actually, neither of the ports are explicitly exposed in the Dockerfile. RTSP's port is exposed in the reference docker compose script. I think at least the RTSP (8554) port should be exposed in the Dockerfile to make it clearer that another application runs inside the same container. Edit: Added a PR for that. Also as reported in #51, there are six other servers inside which IMO should be disabled. |
🚀 Feature Request
Relevant Package [REQUIRED]
Device USB Camera and RTSP Server
Description [REQUIRED]
The Dockerfile uses
aler9/rtsp-simple-server
as a base:device-usb-camera/Dockerfile
Line 36 in 0d2f133
And runs the process before starting the camera service:
device-usb-camera/docker-entrypoint.sh
Lines 3 to 7 in 0d2f133
At the same time, the device service allows configuration of the RTSP server:
device-usb-camera/cmd/res/configuration.toml
Lines 108 to 110 in 0d2f133
I'm not convinced that adding an RTSP server inside the same docker container is a good idea. Note that rtsp-simple-server is already dockerized and easily deployable as standalone: https://hub.docker.com/r/aler9/rtsp-simple-server
There are a few issues:
Describe the solution you'd like
The control of the RTSP server process can be made possible for example by reading an env var in docker-entrypoint.sh to decide if the process should run.
If the RTSP server wasn't embedded, I could easily deploy the project's container together with the Device Usb Camera service container.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: