Last active
November 20, 2025 16:30
-
-
Save nickboldt/86f78312234d84490f1186b389235a29 to your computer and use it in GitHub Desktop.
extract RHDH plugin catalog index or some plugin to a file tree to review contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| unpack () { | |
| local IMAGE="$1" | |
| DIR="/tmp/${IMAGE//:/_}"; rm -fr "$DIR"; mkdir -p "$DIR"; container_id=$(podman create "quay.io/rhdh/${IMAGE}") | |
| podman export $container_id -o /tmp/image.tar && tar xf /tmp/image.tar -C "${DIR}/"; podman rm $container_id; rm -f /tmp/image.tar | |
| echo "Unpacked $IMAGE into $DIR" | |
| cd $DIR; tree -d -L 3 -I "usr|root|buildinfo" | |
| } | |
| unpack "backstage-plugin-notifications:1.9.0--0.5.8" | |
| unpack "plugin-catalog-index:1.9-5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment