Skip to content
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

SSH agent forwarding during build #246

Open
agyoungs opened this issue Oct 6, 2023 · 1 comment
Open

SSH agent forwarding during build #246

agyoungs opened this issue Oct 6, 2023 · 1 comment
Labels

Comments

@agyoungs
Copy link
Contributor

agyoungs commented Oct 6, 2023

It would be nice if there was a way to forward the ssh agent during the build so you could perform actions like cloning repos in the Dockerfile. Unfortunately, this is a limitation of docker-py (see docker/docker-py#3178). Is there a workaround for Rocker?

@agyoungs agyoungs changed the title SSH Agent Forwarding during the Build SSH Agent Forwarding during build Oct 6, 2023
@agyoungs agyoungs changed the title SSH Agent Forwarding during build SSH agent forwarding during build Oct 6, 2023
@tfoote
Copy link
Collaborator

tfoote commented Oct 6, 2023

I don't have a workaround for this. There's a fundamental challenge that the builds are supposed to be reproducible. If you're leveraging content from outside the workspace, such as an ssh agent that goes against that philosophy. Which I think is why it's referenced in docker-py ticket as more of a docker engine limitation, that's potentially partially intentional. I'd be happy to integrate the capability from upstream but I don't think that it makes sense to try to force a way around it here. rocker's focus is on dynamically extending builds and improving the runtime experience. Overriding the core build capabilities is stretching the scope more than I would generally want to do.

@tfoote tfoote added enhancement New feature or request needs more information labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants