feat: ability to disable RTSP server on startup via configuration#268
feat: ability to disable RTSP server on startup via configuration#268ajcasagrande merged 5 commits intoedgexfoundry:mainfrom
Conversation
cd7032c to
a3527cb
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #268 +/- ##
========================================
- Coverage 4.21% 4.10% -0.12%
========================================
Files 8 8
Lines 1067 1096 +29
========================================
Hits 45 45
- Misses 1022 1051 +29
|
|
Validation looks good both in secure and non-secure mode deployments. Below are more details
|
seanohair22
left a comment
There was a problem hiding this comment.
Tested, looks good! Just found one spelling error...
|
PR name should be updated. this is a |
Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
… server is disabled Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
1b9affd to
e5325cd
Compare
ajcasagrande
left a comment
There was a problem hiding this comment.
Looks good! I have a few small suggestions.
Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
…t os.stat message Signed-off-by: Marc-Philippe Fuller <marc-philippe.fuller@intel.com>
cd43ff7 to
f833c80
Compare
farshidtz
left a comment
There was a problem hiding this comment.
A late review. I'm not sure how this is suppose to work with docker and snaps, in which both have other defined ways of starting the RTSP server.
| InputIndex = "InputIndex" | ||
| UrlRawQuery = "urlRawQuery" | ||
| EnableRtspServer = "EnableRtspServer" | ||
| RtspServerCmd = "./rtsp-simple-server" |
There was a problem hiding this comment.
This should be made configurable. The executable path can vary depending on the deployment.
See the snap testing error, line 161:
Aug 15 00:10:47 fv-az570-769 edgex-device-usb-camera.device-usb-camera[5200]: level=ERROR ts=2023-08-15T00:10:47.372662735Z app=device-usb-camera source=init.go:77 msg="ProtocolDriver init failed: ./rtsp-simple-server file cannot be found: stat ./rtsp-simple-server: no such file or directory"
For the snap, it needs to be $SNAP/bin/rtsp-simple-server -> /snap/edgex-device-usb-camera/current/bin/rtsp-simple-server
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:
BREAKING CHANGE:describing the break)N/A
Testing Instructions
make testmake run no-sectymake buildNew Dependency Instructions (If applicable)