containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
23.59k stars 2.4k forks source link

[Feature]: add ssh-agent to contrib/podmanimage #17117

Closed sbidoul closed 1 year ago

sbidoul commented 1 year ago

Feature request description

The official podman image is proving useful in CI contexts, to build images in particular.

To use podman build --ssh, it is necessary to have an ssh agent available, but none is installed in podmanimage.

Since an ssh agent is a soft dependency of podman I'm wondering if it would be considered useful to have ssh-agent installed in podmanimage by default.

Suggest potential solution

dnf install -y openssh-clients in podmanimage Containerfile

Have you considered any alternatives?

  1. Install openssh-clients in CI job, but this is slow
  2. Build own image derived from quay.io/podman/stable with openssh-clients preinstalled

Additional context

Using GitLab CI runner with their suggested approach to pass ssh keys to jobs.

rhatdan commented 1 year ago

Please open a PR to add it. As long as it is not too big, I have no problem adding it.

sbidoul commented 1 year ago

Sweet. Thank you folks!