1 2 3 4 5 6 7 8 9 10 11 12 13
#! /usr/bin/env bash set -o errexit image="$1" [ -n "$image" ] || { echo "Usage: $0 <astra|ccpi|ufo|tomo|imageX>"; exit 1; } container=$(buildah from ${image}) path=$(buildah mount $container) mkdir -p ../repos/ cp -ra "$path/ccpi/repos"/* ../repos/ buildah umount $container