Skip to content

Conversation

vboulineau
Copy link
Contributor

What does this PR do?

Currently ENV vars are set by Docker at process level, which does not allow background services to read them.

Read DD_PROCESS_AGENT_ENABLED in Core agent to know if we should start the process-agent service.

@vboulineau vboulineau added this to the 7.19.0 milestone Apr 17, 2020
@vboulineau vboulineau requested review from a team April 17, 2020 14:23
@vboulineau vboulineau requested a review from a team as a code owner April 17, 2020 14:23
if found {
overrideVars["process_config.enabled"] = ddProcessAgentEnabled
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be done with simple config.BindEnv(), yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No because the variable name is not the same. Using BindEnv would generate DD_PROCESS_CONFIG_ENABLED variable.

clamoriniere
clamoriniere previously approved these changes Apr 20, 2020
julien-lebot
julien-lebot previously approved these changes Apr 20, 2020
@vboulineau vboulineau dismissed stale reviews from julien-lebot and clamoriniere via e3876f1 April 20, 2020 09:22
@vboulineau vboulineau force-pushed the vboulineau/win_docker_services branch from ae9e753 to e3876f1 Compare April 20, 2020 09:22
julien-lebot
julien-lebot previously approved these changes Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants