@@ -358,7 +358,7 @@ Add the following instructions and arguments to your Dockerfile.
358
358
359
359
` ` ` dockerfile
360
360
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
361
- COPY --from=datadog/dd-lib-js-init /operator-build/node_modules / dd_tracer/node/
361
+ RUN npm install --prefix / dd_tracer/node dd-trace --save
362
362
ENV DD_SERVICE=datadog-demo-run-nodejs
363
363
ENV DD_ENV=datadog-demo
364
364
ENV DD_VERSION=1
@@ -378,7 +378,7 @@ CMD ["/nodejs/bin/node", "/path/to/your/app.js"]
378
378
2. Copy the Datadog Node.JS tracer into your Docker image.
379
379
380
380
` ` ` dockerfile
381
- COPY --from=datadog/dd-lib-js-init /operator-build/node_modules / dd_tracer/node/
381
+ RUN npm install --prefix / dd_tracer/node dd-trace --save
382
382
` ` `
383
383
384
384
If you install the Datadog tracer library directly in your application, as outlined in the [manual tracer instrumentation instructions][1], omit this step.
@@ -408,7 +408,7 @@ If you already have an entrypoint defined inside your Dockerfile, you can instea
408
408
409
409
{{< highlight dockerfile "hl_lines=7" >}}
410
410
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
411
- COPY --from=datadog/dd-lib-js-init /operator-build/node_modules / dd_tracer/node/
411
+ RUN npm install --prefix / dd_tracer/node dd-trace --save
412
412
ENV DD_SERVICE=datadog-demo-run-nodejs
413
413
ENV DD_ENV=datadog-demo
414
414
ENV DD_VERSION=1
@@ -420,7 +420,7 @@ If you require your entrypoint to be instrumented as well, you can swap your ent
420
420
421
421
{{< highlight dockerfile "hl_lines=7-8" >}}
422
422
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
423
- COPY --from=datadog/dd-lib-js-init /operator-build/node_modules / dd_tracer/node/
423
+ RUN npm install --prefix / dd_tracer/node dd-trace --save
424
424
ENV DD_SERVICE=datadog-demo-run-nodejs
425
425
ENV DD_ENV=datadog-demo
426
426
ENV DD_VERSION=1
@@ -661,7 +661,11 @@ Add the following instructions and arguments to your Dockerfile.
661
661
662
662
` ` ` dockerfile
663
663
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
664
- COPY --from=datadog/dd-lib-dotnet-init /datadog-init/monitoring-home/ /dd_tracer/dotnet/
664
+ # For arm64 use datadog-dotnet-apm-2.57.0.arm64.tar.gz
665
+ # For alpine use datadog-dotnet-apm-2.57.0-musl.tar.gz
666
+ ARG TRACER_VERSION
667
+ ADD https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm-${TRACER_VERSION}.tar.gz /tmp/datadog-dotnet-apm.tar.gz
668
+ RUN mkdir -p /dd_tracer/dotnet/ && tar -xzvf /tmp/datadog-dotnet-apm.tar.gz -C /dd_tracer/dotnet/ && rm /tmp/datadog-dotnet-apm.tar.gz
665
669
ENV DD_SERVICE=datadog-demo-run-dotnet
666
670
ENV DD_ENV=datadog-demo
667
671
ENV DD_VERSION=1
@@ -679,7 +683,12 @@ CMD ["dotnet", "helloworld.dll"]
679
683
680
684
2. Copy the Datadog .NET tracer into your Docker image.
681
685
` ` ` dockerfile
682
- COPY --from=datadog/dd-lib-dotnet-init /datadog-init/monitoring-home/ /dd_tracer/dotnet/
686
+ # For arm64 use datadog-dotnet-apm-2.57.0.arm64.tar.gz
687
+ # For alpine use datadog-dotnet-apm-2.57.0-musl.tar.gz
688
+ ARG TRACER_VERSION
689
+ ADD https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm-${TRACER_VERSION}.tar.gz /tmp/datadog-dotnet-apm.tar.gz
690
+
691
+ RUN mkdir -p /dd_tracer/dotnet/ && tar -xzvf /tmp/datadog-dotnet-apm.tar.gz -C /dd_tracer/dotnet/ && rm /tmp/datadog-dotnet-apm.tar.gz
683
692
` ` `
684
693
If you install the Datadog tracer library directly in your application, as outlined in the [manual tracer instrumentation instructions][1], omit this step.
685
694
@@ -706,7 +715,11 @@ If you already have an entrypoint defined inside your Dockerfile, you can instea
706
715
707
716
{{< highlight dockerfile "hl_lines=7" >}}
708
717
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
709
- COPY --from=datadog/dd-lib-dotnet-init /datadog-init/monitoring-home/ /dd_tracer/dotnet/
718
+ # For arm64 use datadog-dotnet-apm-2.57.0.arm64.tar.gz
719
+ # For alpine use datadog-dotnet-apm-2.57.0-musl.tar.gz
720
+ ARG TRACER_VERSION
721
+ ADD https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm-${TRACER_VERSION}.tar.gz /tmp/datadog-dotnet-apm.tar.gz
722
+ RUN mkdir -p /dd_tracer/dotnet/ && tar -xzvf /tmp/datadog-dotnet-apm.tar.gz -C /dd_tracer/dotnet/ && rm /tmp/datadog-dotnet-apm.tar.gz
710
723
ENV DD_SERVICE=datadog-demo-run-dotnet
711
724
ENV DD_ENV=datadog-demo
712
725
ENV DD_VERSION=1
@@ -718,7 +731,11 @@ If you require your entrypoint to be instrumented as well, you can swap your ent
718
731
719
732
{{< highlight dockerfile "hl_lines=7-8" >}}
720
733
COPY --from=datadog/serverless-init:1 /datadog-init /app/datadog-init
721
- COPY --from=datadog/dd-lib-dotnet-init /datadog-init/monitoring-home/ /dd_tracer/dotnet/
734
+ # For arm64 use datadog-dotnet-apm-2.57.0.arm64.tar.gz
735
+ # For alpine use datadog-dotnet-apm-2.57.0-musl.tar.gz
736
+ ARG TRACER_VERSION
737
+ ADD https://github.com/DataDog/dd-trace-dotnet/releases/download/v${TRACER_VERSION}/datadog-dotnet-apm-${TRACER_VERSION}.tar.gz /tmp/datadog-dotnet-apm.tar.gz
738
+ RUN mkdir -p /dd_tracer/dotnet/ && tar -xzvf /tmp/datadog-dotnet-apm.tar.gz -C /dd_tracer/dotnet/ && rm /tmp/datadog-dotnet-apm.tar.gz
722
739
ENV DD_SERVICE=datadog-demo-run-dotnet
723
740
ENV DD_ENV=datadog-demo
724
741
ENV DD_VERSION=1
0 commit comments