Skip to content

Instantly share code, notes, and snippets.

@nickboldt
Last active November 20, 2025 16:30
Show Gist options
  • Select an option

  • Save nickboldt/86f78312234d84490f1186b389235a29 to your computer and use it in GitHub Desktop.

Select an option

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
#!/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