Skip to content

Commit

Permalink
Expose all collector ports in all-one-one and collector docker image
Browse files Browse the repository at this point in the history
Signed-off-by: Arunvel Sriram <[email protected]>
  • Loading branch information
arunvelsriram committed Oct 9, 2023
1 parent 30b2a57 commit d8755a3
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
18 changes: 18 additions & 0 deletions cmd/all-in-one/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ EXPOSE 6832/udp
# Agent config HTTP
EXPOSE 5778

# Collector OTLP gRPC
EXPOSE 4317

# Collector OTLP HTTP
EXPOSE 4318

# Collector HTTP
EXPOSE 14268

# Collector gRPC
EXPOSE 14250

# Collector Zipkin
EXPOSE 9411

# Web HTTP
EXPOSE 16686

Expand Down Expand Up @@ -52,12 +61,21 @@ EXPOSE 6832/udp
# Agent config HTTP
EXPOSE 5778

# Collector OTLP gRPC
EXPOSE 4317

# Collector OTLP HTTP
EXPOSE 4318

# Collector HTTP
EXPOSE 14268

# Collector gRPC
EXPOSE 14250

# Collector Zipkin
EXPOSE 9411

# Web HTTP
EXPOSE 16686

Expand Down
37 changes: 35 additions & 2 deletions cmd/collector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,47 @@ FROM $base_image AS release
ARG TARGETARCH
ARG USER_UID=10001
COPY collector-linux-$TARGETARCH /go/bin/collector-linux
EXPOSE 14250/tcp

# Collector OTLP gRPC
EXPOSE 4317

# Collector OTLP HTTP
EXPOSE 4318

# Collector HTTP
EXPOSE 14268

# Collector gRPC
EXPOSE 14250

# Collector Zipkin
EXPOSE 9411

ENTRYPOINT ["/go/bin/collector-linux"]
USER ${USER_UID}

FROM $debug_image AS debug
ARG TARGETARCH=amd64
ARG USER_UID=10001
COPY collector-debug-linux-$TARGETARCH /go/bin/collector-linux
EXPOSE 12345/tcp 14250/tcp

# Collector OTLP gRPC
EXPOSE 4317

# Collector OTLP HTTP
EXPOSE 4318

# Collector HTTP
EXPOSE 14268

# Collector gRPC
EXPOSE 14250

# Collector Zipkin
EXPOSE 9411

# Delve
EXPOSE 12345

ENTRYPOINT ["/go/bin/dlv", "exec", "/go/bin/collector-linux", "--headless", "--listen=:12345", "--api-version=2", "--accept-multiclient", "--log", "--"]
USER ${USER_UID}

0 comments on commit d8755a3

Please sign in to comment.