summaryrefslogtreecommitdiffstats
path: root/build/extract.sh
blob: 90793d5716df98cb1e857a0f350830a0f1944d48 (plain)
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