An Ansible Playbook to build bootc multi-architecture images on RHEL, Fedora or CentOS Stream
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
438 B

#!/bin/bash
# See https://gitlab.com/fedora/bootc/examples/-/blob/main/physically-bound-images/README.md
set -euxo pipefail
image=$1
additional_copy_args=${2:-""}
mkdir -p /usr/lib/containers-image-cache
sha=$(echo "$image" | sha256sum | awk '{ print $1 }')
skopeo copy $additional_copy_args --preserve-digests docker://$image dir:/usr/lib/containers-image-cache/$sha
echo "$image,$sha" >> /usr/lib/containers-image-cache/mapping.txt