-
Notifications
You must be signed in to change notification settings - Fork 170
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
cmd-remote-build-container: Add support for secret, mount-host-ca-cer… #4033
Conversation
7c73dd6
to
4439d9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final nits, otherwise LGTM!
src/cmd-remote-build-container
Outdated
parser.add_argument( | ||
'--repo', default='localhost', required=False, | ||
help='Registry repository') | ||
parser.add_argument( | ||
'--secret', required=False, action='append', default=[], | ||
help='Provide a local secret for remote access. Uses the same syntax as podman --secret') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
help='Provide a local secret for remote access. Uses the same syntax as podman --secret') | |
help='Provide a local secret for remote access. Uses the same syntax as `podman build --secret`') |
src/cmd-remote-build-container
Outdated
help='Provide a local secret for remote access. Uses the same syntax as podman --secret') | ||
parser.add_argument( | ||
'--security-opt', required=False, | ||
help='Set SELinux options. Uses the same syntax as podman --security-opt') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
help='Set SELinux options. Uses the same syntax as podman --security-opt') | |
help='Set SELinux options. Uses the same syntax as `podman build --security-opt`') |
…ts, and security-opt parameters - Allow passing secret files and SELinux labels in remote builds. - Enable mounting the host's CA certificates, as they are already available by default on the host. Signed-off-by: Renata Ravanelli <[email protected]>
4439d9a
to
0c8dad0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI failure is unrelated. CI doesn't test this (apart from the Python lint/flake checks, which passed), so let's just merge it.
if secret: | ||
for s in secret: | ||
cmd.append(f"--secret={s}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this could be just
for secret in secrets:
cmd.append(f"--secret={secret}")
but not worth the respin.
…ts, and security-opt parameters