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.
Signed-off-by: Oleksandr Simonov [email protected]
The reason for this change is because i have this function depends on a private pypi repository on github which requires a providing ssh key inside Dockerfile. To avoid put sensitive data into the images, i decided to make this change to take the benifit of using docker buildkit secrets and ssh support.
Description
In our work we required to have ability to fetch a private libraries for Python through GitHub repo.
I have made a research and have found that there are already a discussion #785 and PR #786. But PR is too specific and in discussion a proposal for more generic variant. So I have added ability to provide a custom arguments to docker build like
--ssh
or--secret
Example usage for now is next:
faas-cli build --build-flags "--ssh default"
Motivation and Context
Provide ability to fetch from any secure package storage from any git repository or through secrets to fetch from any private package manager's host.
How Has This Been Tested?
Yes, i have added new tests for such feature.
Types of changes
Checklist:
git commit -s