Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Xdock jaeger compose file (#213)
- Loading branch information
1 parent
ffe98ab
commit 016415c
Showing
8 changed files
with
75 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ gen/thrift/js | |
gen/thrift/py | ||
vendor/ | ||
crossdock-main | ||
crossdock/jaeger-docker-compose.yml |
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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
FROM scratch | ||
|
||
ADD crossdock / | ||
CMD ["/crossdock"] | ||
|
||
ENV AGENT_HOST_PORT=jaeger-agent:5775 | ||
ENV SAMPLING_SEVER_URL=http://test_driver:5778/sampling | ||
|
||
EXPOSE 8080-8082 | ||
|
||
CMD ["/crossdock"] |
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
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 |
---|---|---|
@@ -1,25 +1,32 @@ | ||
XDOCK_YAML=crossdock/docker-compose.yml | ||
|
||
JAEGER_COMPOSE_URL=https://raw.githubusercontent.com/jaegertracing/jaeger/master/docker-compose/jaeger-docker-compose.yml | ||
XDOCK_JAEGER_YAML=crossdock/jaeger-docker-compose.yml | ||
|
||
.PHONY: crossdock-linux-bin | ||
crossdock-linux-bin: | ||
CGO_ENABLED=0 GOOS=linux time go build -a -installsuffix cgo -o crossdock/crossdock ./crossdock | ||
|
||
.PHONY: crossdock | ||
crossdock: crossdock-linux-bin | ||
docker-compose -f $(XDOCK_YAML) kill go | ||
docker-compose -f $(XDOCK_YAML) rm -f go | ||
docker-compose -f $(XDOCK_YAML) build go | ||
docker-compose -f $(XDOCK_YAML) run crossdock 2>&1 | tee run-crossdock.log | ||
crossdock: crossdock-linux-bin crossdock-download-jaeger | ||
docker-compose -f $(XDOCK_YAML) -f $(XDOCK_JAEGER_YAML) kill go | ||
docker-compose -f $(XDOCK_YAML) -f $(XDOCK_JAEGER_YAML) rm -f go | ||
docker-compose -f $(XDOCK_YAML) -f $(XDOCK_JAEGER_YAML) build go | ||
docker-compose -f $(XDOCK_YAML) -f $(XDOCK_JAEGER_YAML) run crossdock 2>&1 | tee run-crossdock.log | ||
grep 'Tests passed!' run-crossdock.log | ||
|
||
.PHONY: crossdock-fresh | ||
crossdock-fresh: crossdock-linux-bin | ||
docker-compose -f $(XDOCK_YAML) kill | ||
docker-compose -f $(XDOCK_YAML) rm --force | ||
docker-compose -f $(XDOCK_YAML) pull | ||
docker-compose -f $(XDOCK_YAML) build | ||
docker-compose -f $(XDOCK_YAML) run crossdock | ||
crossdock-fresh: crossdock-linux-bin crossdock-download-jaeger | ||
docker-compose -f $(XDOCK_JAEGER_YAML) -f $(XDOCK_YAML) kill | ||
docker-compose -f $(XDOCK_JAEGER_YAML) -f $(XDOCK_YAML) rm --force | ||
docker-compose -f $(XDOCK_JAEGER_YAML) -f $(XDOCK_YAML) pull | ||
docker-compose -f $(XDOCK_JAEGER_YAML) -f $(XDOCK_YAML) build | ||
docker-compose -f $(XDOCK_JAEGER_YAML) -f $(XDOCK_YAML) run crossdock | ||
|
||
.PHONE: crossdock-logs | ||
crossdock-logs: | ||
docker-compose -f $(XDOCK_YAML) logs | ||
crossdock-logs: crossdock-download-jaeger | ||
docker-compose -f $(XDOCK_JAEGER_YAML) -f $(XDOCK_YAML) logs | ||
|
||
.PHONY: crossdock-download-jaeger | ||
crossdock-download-jaeger: | ||
curl -o $(XDOCK_JAEGER_YAML) $(JAEGER_COMPOSE_URL) |
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