edgexfoundry / edgexfoundry/device-sdk-c
Add -d/--dev common command-line flag to put service in Dev Mode
- Dominant language
- C
- Stars
- 45
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
# 🚀 Feature Request
### Relevant Package [**REQUIRED**]
This feature request is for C Device SDK
### Description [**REQUIRED**]
Currently with the new Common Config, the common `Host` settings, i.e MessageBus.Host, etc., are in common config in the Config Provider. When running from command line in hybrid mode with Config Provider, the common `Host` settings have been overridden with the docker network names and are not valid when running service outside docker.
The current workaround is to have these common Host settings commented out every services' local private configuration file. When running the service in hybrid mode with Config Provider, the developer must uncomment these settings.
ref:
- https://github.com/edgexfoundry/go-mod-bootstrap/issues/509
### Describe the solution you'd like
Add the new `-d/--dev` command flag which will cause all the Host settings pulled from common configuration to be overridden with the value `localhost`.
Refer to these PRs in Go:
- https://github.com/edgexfoundry/go-mod-bootstrap/pull/516
- https://github.com/edgexfoundry/go-mod-bootstrap/pull/541
- https://github.com/edgexfoundry/go-mod-bootstrap/pull/601
### Describe alternatives you've considered
Use current work around of commented out settings which clutter the service config files
Contributor guide
Assessment
This issue has not been assessed yet.