Skip to content

Commit

Permalink
mount tmpfs over /run/secrets to disable subscription integration
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwcook authored Jul 17, 2024
1 parent 9a47493 commit 95e16db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions task/buildah-remote-oci-ta/0.1/buildah-remote-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ spec:
# this prevents the container from using podman-subscripition-mananger magic,
# so that it will use certificates from /etc/pki/entitlements
rm -f /usr/share/containers/mounts.conf
# rm -f /usr/share/containers/mounts.conf
unshare -Uf $UNSHARE_ARGS --keep-caps -r --map-users 1,1,65536 --map-groups 1,1,65536 -w ${SOURCE_CODE_DIR}/$CONTEXT -- buildah build \
$VOLUME_MOUNTS \
Expand Down Expand Up @@ -416,7 +416,9 @@ spec:
REMOTESSHEOF
chmod +x scripts/script-build.sh
rsync -ra scripts "$SSH_HOST:$BUILD_DIR"
ssh $SSH_ARGS "$SSH_HOST" $PORT_FORWARD podman run $PODMAN_PORT_FORWARD \
ssh $SSH_ARGS "$SSH_HOST" $PORT_FORWARD podman run $PODMAN_PORT_FORWARD \
# disable subscription-manager integration
--tmpfs /run/secrets \
-e ADDITIONAL_SECRET="$ADDITIONAL_SECRET" \
-e ADD_CAPABILITIES="$ADD_CAPABILITIES" \
-e BUILDAH_FORMAT="$BUILDAH_FORMAT" \
Expand Down

0 comments on commit 95e16db

Please sign in to comment.