-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose and reuse it in crossdock #493
Merged
yurishkuro
merged 7 commits into
jaegertracing:master
from
pavolloffay:generic-integration-tests
Oct 30, 2017
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ff16ac3
Introduce docker-compose and reuse it in crossdock
pavolloffay 89362ef
Fix empty static files
pavolloffay d3df411
fix default test
pavolloffay 64925fd
Increase test coverage
pavolloffay aa61979
Refactor mains
pavolloffay 041da91
fix
pavolloffay 26c3f59
Fix build
pavolloffay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,8 +1,6 @@ | ||
FROM gliderlabs/alpine | ||
ADD crossdock / | ||
CMD ["/crossdock"] | ||
EXPOSE 8080 | ||
FROM scratch | ||
|
||
COPY crossdock-linux /go/bin/ | ||
|
||
COPY .build/scripts/* /scripts/ | ||
COPY .build/cmd/* /cmd/ | ||
COPY .build/ui/* /ui/ | ||
EXPOSE 8080 | ||
CMD ["/go/bin/crossdock-linux"] |
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 |
---|---|---|
|
@@ -4,6 +4,9 @@ services: | |
crossdock: | ||
image: crossdock/crossdock | ||
links: | ||
- jaeger-query | ||
- jaeger-collector | ||
- jaeger-agent | ||
- test_driver | ||
- go | ||
- node | ||
|
@@ -27,48 +30,54 @@ services: | |
image: jaegertracing/xdock-go | ||
ports: | ||
- "8080-8082" | ||
links: | ||
- "jaeger-agent:test_driver" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Temporary fix, xdock images expect jaeger services on this host. |
||
|
||
node: | ||
image: jaegertracing/xdock-node | ||
ports: | ||
- "8080-8082" | ||
links: | ||
- "jaeger-agent:test_driver" | ||
|
||
java: | ||
image: jaegertracing/xdock-java | ||
ports: | ||
- "8080-8082" | ||
depends_on: | ||
- test_driver | ||
links: | ||
- "jaeger-agent:test_driver" | ||
|
||
python: | ||
image: jaegertracing/xdock-py | ||
ports: | ||
- "8080-8082" | ||
links: | ||
- "jaeger-agent:test_driver" | ||
|
||
zipkin-brave-json: | ||
image: jaegertracing/xdock-zipkin-brave | ||
ports: | ||
- "8080-8081" | ||
environment: | ||
- ENCODING=JSON | ||
links: | ||
- "jaeger-collector:test_driver" | ||
|
||
zipkin-brave-thrift: | ||
image: jaegertracing/xdock-zipkin-brave | ||
ports: | ||
- "8080-8081" | ||
environment: | ||
- ENCODING=THRIFT | ||
|
||
|
||
cassandra: | ||
image: "cassandra:3.9" | ||
links: | ||
- "jaeger-collector:test_driver" | ||
|
||
test_driver: | ||
build: . | ||
image: jaegertracing/test-driver:latest | ||
links: | ||
- cassandra | ||
depends_on: | ||
- cassandra | ||
image: jaegertracing/test-driver | ||
ports: | ||
- "8080" | ||
|
||
jaeger-query: | ||
# override to disable static files | ||
command: ["/go/bin/query-linux", "--query.static-files=", "--cassandra.keyspace=jaeger_v1_dc1", "--cassandra.servers=cassandra"] | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting the repository to the correct one. I added user input to docker push to avoid unwanted pushes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was on purpose, so that we don't push accidentally to the official repository. Just pass
DOCKER_NAMESPACE
before themake
command to override it:Or, like this:
jaeger/travis/build-docker-images.sh
Line 23 in f0193c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know, because of this I have added user input/verification before docker push.
This change is because now xdock uses only docker images so it has to build. We could use different image names/repository in docker-compose but that seems more odd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work
CONTINUE=y make docker-push