Expose profile setting to configure EPR_PROXY_TO #3113
Merged
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.
Part of #2993.
Add a new profile setting,
stack.epr_proxy_to, that can be used to configure the Package Registry that the local instance uses to proxy its requests to for retrieving packages that are not available locally.How to test
Using the flag
Start a local stack using the profile parameter, for example:
Check the following:
~/.elastic-package/profiles/default/stack/Dockerfile.package-registryincludes this line (assuming current profile isdefault):"request.uri":"https://epr-staging.elastic.co....Using the profile configuration file
Edit
~/.elastic-package/profiles/default/config.yml, or create it if it doesn't exist. Add this line:Start a local stack using the profile parameter, for example:
Check the same things as in the previous case.