edgexfoundry / edgexfoundry/device-sdk-c

Add -d/--dev common command-line flag to put service in Dev Mode

Open
#487 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.