我想使用 docker 在我的项目上启用 New Relic 和 Contrast,但它显然不适用于多个分析器。
##Contrast Environment Variables
ENV CONTRAST_CONFIG_PATH=/contrast_security.yaml
ENV CORECLR_ENABLE_PROFILING=1 \
CORECLR_PROFILER_PATH=/app/Contrast.NET.Core_3.0.1.0/runtimes/linux-x64/native/ContrastProfiler.so \
CORECLR_PROFILER={498f4g9sf8g4s9fg84s98sf49sf8} \
CONTRAST__API__URL=https://ce.contrastsecurity.com/Contrast \
CONTRAST__API__API_KEY=mykey \
CONTRAST__API__SERVICE_KEY=servicekey \
CONTRAST__API__USER_NAME=agent_00000@MeOrg
##NewRelic Environment Variables
ENV CORECLR_ENABLE_PROFILING_ALT=1 \
CORECLR_PROFILER_ALT={gsf98g498sgd4d98g4sd984s} \
CORECLR_NEWRELIC_HOME=/usr/local/newrelic-dotnet-agent \
CORECLR_PROFILER_PATH_ALT=/usr/local/newrelic-dotnet-agent/libNewRelicProfiler.so \
NEW_RELIC_LICENSE_KEY=license_key \
NEW_RELIC_APP_NAME=myapp