Skip to content

Commit

Permalink
Pass secrets from the host down to internal podman containers
Browse files Browse the repository at this point in the history
This change will allow RHEL subscriptions from the host to flow to internal containers.

Fixes: containers/common#1735

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
  • Loading branch information
rhatdan committed Nov 12, 2023
1 parent bf3b55b commit 705656e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/buildahimage/Containerfile
Expand Up @@ -65,6 +65,9 @@ RUN dnf -y makecache && \

ADD ./containers.conf /etc/containers/

# Setup internal Buildah to pass secrets/subscriptions down from host to internal container
RUN printf '/run/secrets:/run/secrets\n' > /etc/containers/mounts.conf

# Copy & modify the defaults to provide reference if runtime changes needed.
# Changes here are required for running with fuse-overlay storage inside container.
RUN sed -e 's|^#mount_program|mount_program|g' \
Expand Down

0 comments on commit 705656e

Please sign in to comment.