-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Copy configs into example images #12256
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
Merged
mattklein123
merged 18 commits into
envoyproxy:master
from
phlax:copy-configs-into-example-images
Aug 3, 2020
Merged
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
96fde8e
Copy front-proxy example config into image
phlax 7b09387
Copy cors example config into images
phlax c2e4b98
Copy mysql example config into image
phlax 2055cab
Copy lua example config into image
phlax adef7cb
Copy fault-injection config into image
phlax 819863f
Copy zipkin config into image
phlax ff9d821
Copy CSRF example config into image
phlax d998885
Copy ext_authz example config into image
phlax edbee0e
Improve context for jaeger native example docker build
phlax eccdbbd
Copy Jaeger example config into image
phlax 13e4605
Include jaeger-native binary in example
phlax f124762
Copy configs into example grpc-bridge images
phlax 609caf4
Fetch jaeger native binary in docker recipe
phlax ac45889
Update BUILD configs with example config paths
phlax 4acfacf
Remove unused jaeger binary
phlax a5c1a72
Fix deprecation issues in example configs
phlax dd552eb
Update config count in configs test
phlax c2bc93b
Remove some configs from build config test
phlax 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,7 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| RUN apt-get update && apt-get -q install -y \ | ||
| curl | ||
| COPY ./front-envoy.yaml /etc/front-envoy.yaml | ||
| RUN chmod go+r /etc/front-envoy.yaml | ||
| CMD /usr/local/bin/envoy -c /etc/front-envoy.yaml --service-cluster front-proxy |
This file contains hidden or 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 hidden or 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 hidden or 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,9 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| RUN apt-get update && apt-get -q install -y \ | ||
| curl | ||
| COPY ./config /etc/envoy-config | ||
| COPY ./run_envoy.sh /run_envoy.sh | ||
| RUN chmod go+r -R /etc/envoy-config \ | ||
| && chmod go+rx /run_envoy.sh /etc/envoy-config /etc/envoy-config/* | ||
|
mattklein123 marked this conversation as resolved.
|
||
| CMD /run_envoy.sh | ||
This file contains hidden or 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 hidden or 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,3 @@ | ||
| #!/bin/sh | ||
|
|
||
| /usr/local/bin/envoy -c "/etc/envoy-${FRONT_ENVOY_YAML}" --service-cluster front-proxy | ||
|
mattklein123 marked this conversation as resolved.
|
||
This file contains hidden or 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,6 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| RUN apt-get update && apt-get install -y curl tree | ||
| COPY ./envoy.yaml /etc/envoy.yaml | ||
| RUN chmod go+r /etc/envoy.yaml | ||
| COPY enable_delay_fault_injection.sh disable_delay_fault_injection.sh enable_abort_fault_injection.sh disable_abort_fault_injection.sh send_request.sh / |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| COPY ./client/envoy-proxy.yaml /etc/client-envoy-proxy.yaml | ||
| RUN chmod go+r /etc/client-envoy-proxy.yaml | ||
| CMD /usr/local/bin/envoy -c /etc/client-envoy-proxy.yaml |
This file contains hidden or 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,5 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| COPY ./server/envoy-proxy.yaml /etc/server-envoy-proxy.yaml | ||
| RUN chmod go+r /etc/server-envoy-proxy.yaml | ||
| CMD /usr/local/bin/envoy -c /etc/server-envoy-proxy.yaml --service-cluster backend-proxy |
This file contains hidden or 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 hidden or 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,8 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| RUN apt-get update && apt-get -q install -y \ | ||
| curl | ||
| COPY ./front-envoy-jaeger.yaml /etc/front-envoy.yaml | ||
| COPY ./libjaegertracing.so.0.4.2 /usr/local/lib/libjaegertracing_plugin.so | ||
|
phlax marked this conversation as resolved.
Outdated
|
||
| RUN chmod go+r /etc/front-envoy.yaml /usr/local/lib/libjaegertracing_plugin.so | ||
| CMD /usr/local/bin/envoy -c /etc/front-envoy.yaml --service-cluster front-proxy | ||
This file contains hidden or 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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,7 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| RUN apt-get update && apt-get -q install -y \ | ||
| curl | ||
| COPY ./front-envoy-jaeger.yaml /etc/front-envoy.yaml | ||
| RUN chmod go+r /etc/front-envoy.yaml | ||
| CMD /usr/local/bin/envoy -c /etc/front-envoy.yaml --service-cluster front-proxy |
This file contains hidden or 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 hidden or 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,3 +1,5 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
| ADD ./lib/mylibrary.lua /lib/mylibrary.lua | ||
| COPY ./envoy.yaml /etc/envoy.yaml | ||
| RUN chmod go+r /etc/envoy.yaml /lib/mylibrary.lua | ||
| CMD /usr/local/bin/envoy -c /etc/envoy.yaml -l debug --service-cluster proxy |
This file contains hidden or 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 hidden or 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,3 +1,5 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| COPY ./envoy.yaml /etc/envoy.yaml | ||
| RUN chmod go+r /etc/envoy.yaml | ||
| CMD /usr/local/bin/envoy -c /etc/envoy.yaml -l debug |
This file contains hidden or 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 hidden or 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,7 @@ | ||
| FROM envoyproxy/envoy-dev:latest | ||
|
|
||
| RUN apt-get update && apt-get -q install -y \ | ||
| curl | ||
| COPY ./front-envoy-zipkin.yaml /etc/front-envoy.yaml | ||
| RUN chmod go+r /etc/front-envoy.yaml | ||
| CMD /usr/local/bin/envoy -c /etc/front-envoy.yaml --service-cluster front-proxy |
This file contains hidden or 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
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.
I think these configs are missing from https://github.com/envoyproxy/envoy/blob/master/examples/BUILD. Can we fix the configs? This will have to be updated also https://github.com/envoyproxy/envoy/blob/master/test/config_test/example_configs_test.cc.
Bonus points for figuring out how to automatically make sure new configs get added for testing. This is a consistent problem that we have. Thank you!
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.
@mattklein123 i found the problem using this test runner
https://github.com/phlax/envoy-examples
weve been talking about how/if we could land it in envoy repo - i was waiting to land this first before thinking about it
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.
OK sounds good. In the interim can you fix the configs and add to the config tests? Thank you.
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.
not sure if it would catch these configs tho
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 updated the
BUILDscript with all of the configs withyamlsuffix.Not entirely clear if this is correct, but also noticing that there is at least one non-yaml config listed, so there may be more
Im afraid its not immediately obvious to me what needs to change here
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.
You need to:
Thank you!
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.
@mattklein123
i have fixed the deprecation issues in the example configs and updated the necessary test files
I wasnt able to include the
jaeger-nativeconfig as it fails withim not sure how to mock/expect the files absence. Im happy to update if i know how.
i also updated the test runner i have tor the examples to test both the
corsandcsrfexamples more thoroughly, and ensure i wasnt breaking anything.regarding keeping the
BUILDscript up-to-date, we could do something likeit would fail on this PR because the
jaegerconfigs arent includedThere 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.
Awesome thanks a ton. Agreed we can do something like the script you recommend as a follow up? (Perhaps with an exclusion list for configs we know won't work.)