-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Test jaeger-v2 as all-in-one in CI (#4890)
## Which problem is this PR solving? - Enable testing of jaeger-v2 in all-in-one mode in CI - Part of #4843 ## Description of the changes - Add `cmd/jaeger-v2/Dockerfile` - Parameterize `scripts/build-all-in-one-image.sh` to allow running `jaeger-v2` instead of `all-in-one` - Call this script with `jaeger-v2` from .github/workflows/ci-all-in-one-build.yml ## How was this change tested? ```shell $ BINARY=jaeger-v2 BRANCH=v2-docker GITHUB_SHA=abcd scripts/build-all-in-one-image.sh pr-only ``` --------- Signed-off-by: Yuri Shkuro <github@ysh.us>
- Loading branch information
1 parent
10e82c0
commit 7ff9c3a
Showing
6 changed files
with
148 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
ARG base_image | ||
ARG debug_image | ||
|
||
FROM $base_image AS release | ||
ARG TARGETARCH | ||
ARG USER_UID=10001 | ||
|
||
# Agent zipkin.thrift compact | ||
EXPOSE 5775/udp | ||
|
||
# Agent jaeger.thrift compact | ||
EXPOSE 6831/udp | ||
|
||
# Agent jaeger.thrift binary | ||
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 | ||
|
||
# Default configuration file for setting sampling strategies | ||
# ENV SAMPLING_STRATEGIES_FILE=/etc/jaeger/sampling_strategies.json | ||
|
||
COPY jaeger-v2-linux-$TARGETARCH /go/bin/jaeger-v2-linux | ||
# COPY sampling_strategies.json /etc/jaeger/ | ||
|
||
VOLUME ["/tmp"] | ||
ENTRYPOINT ["/go/bin/jaeger-v2-linux"] | ||
USER ${USER_UID} | ||
|
||
FROM $debug_image AS debug | ||
ARG TARGETARCH=amd64 | ||
ARG USER_UID=10001 | ||
|
||
# Agent zipkin.thrift compact | ||
EXPOSE 5775/udp | ||
|
||
# Agent jaeger.thrift compact | ||
EXPOSE 6831/udp | ||
|
||
# Agent jaeger.thrift binary | ||
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 | ||
|
||
# Delve | ||
EXPOSE 12345 | ||
|
||
# Default configuration file for setting sampling strategies | ||
# ENV SAMPLING_STRATEGIES_FILE=/etc/jaeger/sampling_strategies.json | ||
|
||
COPY jaeger-v2-debug-linux-$TARGETARCH /go/bin/jaeger-v2-linux | ||
# COPY sampling_strategies.json /etc/jaeger/ | ||
|
||
VOLUME ["/tmp"] | ||
ENTRYPOINT ["/go/bin/dlv", "exec", "/go/bin/jaeger-v2-linux", "--headless", "--listen=:12345", "--api-version=2", "--accept-multiclient", "--log", "--"] | ||
USER ${USER_UID} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters