File: Dockerfile

package info (click to toggle)
dd-opentracing-cpp 1.3.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,336 kB
  • sloc: cpp: 44,895; sh: 697; ansic: 27; makefile: 20
file content (25 lines) | stat: -rw-r--r-- 672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from ubuntu:20.04

run apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake wget coreutils

# Download and install the latest release of the Datadog C++ tracer library.
copy bin/install-latest-dd-opentracing-cpp .
run ./install-latest-dd-opentracing-cpp

copy tracer_example.cpp .

# Compile the tracer client.
run g++ \
  -std=c++14 \
  -o tracer_example \
  tracer_example.cpp \
  -I/dd-opentracing-cpp/deps/include \
  -L/dd-opentracing-cpp/deps/lib \
  -ldd_opentracing \
  -lopentracing

# Add /usr/local/lib to LD_LIBRARY_PATH.
run ldconfig

copy bin/wait-for-file .
cmd ./wait-for-file "$DD_TRACE_AGENT_URL" && ./tracer_example