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

Add ssh field to docker_image. #13957

Merged
merged 1 commit into from Dec 23, 2021
Merged

Add ssh field to docker_image. #13957

merged 1 commit into from Dec 23, 2021

Conversation

kaos
Copy link
Member

@kaos kaos commented Dec 22, 2021

Fixes #13935

[ci skip-rust]

[ci skip-build-wheels]
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It's cool how easy it is to add this. Great work!

default = ()
help = (
"SSH agent socket or keys to expose to the build (only if BuildKit enabled) "
"(format: default|<id>[=<socket>|<key>[,<key>]])\n\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for specifying the grammar! Perhaps an example would help too in a followup paragraph? I appreciate the example with RUN --mount=type=ssh.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking. My brain works better seeing examples, but the help message is already quite excellent :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the lack of example here is mainly due to me not having a clue! :P :D

Never used this option myself, so it's just copy paste from the docker docs. ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll land this as-is for now. we can always come back and improve on it later..

@kaos kaos merged commit 171af08 into pantsbuild:main Dec 23, 2021
@kaos kaos deleted the docker_ssh_auth branch December 23, 2021 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docker-image does not seem to pass ssh authentication
2 participants