-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Pulling plugins from domains not github.com #11164
Comments
Hi, thanks for reaching out. This is definitely on our roadmap for something we want to do in the future, hence the "eventual" comment. As a workaround, you can manually download plugins and place them into the plugins directory on your build server in order to make them discoverable by Packer without being downloaded. Full details can be found here: https://www.packer.io/docs/plugins (click the "manual (multi-component plugin)" tab) |
For us, we sometimes hit the GitHub rate limit on our CI runners which made us require to create mirrors of the used plugins. Those mirrors are located in Sub-Groups in our internal GitLab, but Packer force-validates / requires the source in a
|
Hello there, thanks for opening, Packer is meant to support other plugin getters than GitHub ! We just did not have the time to do it due to other priorities. If you would like to do that, I will try to give code pointers though, we would be more than happy to review PRs on this ! First, you will have to implement a new plugin getter, the GitHub one is being used here: Lines 85 to 86 in 0e3fcb5
and being implemented in here: packer/packer/plugin-getter/github/getter.go Lines 29 to 32 in f48583c
The getter interface is defined here, I'd recommend reading it first :) : packer/packer/plugin-getter/plugins.go Lines 274 to 323 in 54a4f59
|
Hello, I am interested in working this issue. My team has a use-case for this where we would like to build on our private networks without having to copy the plugins to each host as we are spread across multiple sites. |
@ianblackshere we got around this by pulling the packages in and pulling them from local. |
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Description
Allow pulling plugins from other vcs sites, in my case gitlab.
Use Case(s)
github is external to my build server and is therefore against company standards for use as an external dependency location
Potential configuration
Potential References
This is documented as an
eventual
here: plugins source-addressesThe text was updated successfully, but these errors were encountered: