-
Notifications
You must be signed in to change notification settings - Fork 319
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
Add option to mount host ssh agent (--ssh) #336
base: master
Are you sure you want to change the base?
Conversation
Hi @ohenning can you have a look at the failing checks on this one? We will have a look into this PR over the next few weeks (coming to end of quarter and have features to deliver!) to confirm it doesn't introduce any security vulnerabilities that we should be concerned about :) Thanks for your work on this! PS might also be worth a rebase! |
8cb5894
to
b85d92e
Compare
Hi @d1wilko , thanks for your feedback! Rebasing resolved the failing build! 👍 |
Hey, @d1wilko! Any new thoughts on this feature? I could benefit from it as well 😃 |
This is something we need for our drone builds, can you work at getting this merged @d1wilko ? |
Hey @ohenning Looks like the branch has conflicts? Can you merge master please? |
@jimsheldon @eoinmcafee00 I've addressed the merge conflicts in #369. Can someone take a look so we can get it merged in? |
Hey @ohenning Have you been able to verify this change works? This change expects the ability to mount the ssh directory which the docker plugin doesn't support. Can you provide some screenshots of this working, please? Also, it still seems to be complaining about conflicts. Cheers, |
I couldn't get this to work, fixes in #369 |
PR Purpose
This PR provides a new setting to the plugin:
ssh_agent
-> Pass host ssh agent to the Image. Under the hood this triggers the--ssh
option to be set when building the image (https://docs.docker.com/develop/develop-images/build_enhancements/#using-ssh-to-access-private-data-in-builds).This get's really useful when it's required to access private repositories from inside the Image to build.
Additional Info
For this to work, it's necessary to have
DOCKER_BUILDKIT
enabled.Example:
drone.yaml
Dockerfile
the docker plugin documentation might have to be updated.