Open aaband opened 3 years ago
Hello @aaband, thanks for reaching out.
As you pointed out, CircleCI does not inject project environment variables into secondary containers (feature request), so the agent cannot be run as one.
The current workaround we use in our Datadog Agent Orb is to install the agent in the main container (where the project env vars are present). Can you expand a little more on why it's not possible to use the Datadog Agent Orb setup step in your workflow?
In any case, we are actively working to remove the need to run the Datadog Agent to report test results, so this won't be a problem in the near future.
Describe what happened: I want to put dd agent as a sidecar container inside the circle ci job. Example:
Describe what you expected: I expect the container to start and reread
DD_API_KEY
env value as it changes. In circleci env variables are populated as a step only after the docker container start, but dd agent container can't start without env var provided, container exits with code 1. So I cant use vars from circleci environment variables. The only way to go is to put api_key var in plain text in the github repository.I use the job defined in the 3rd party orb, I cant incorporate agent installation there as a step. Steps to reproduce the issue: