summaryrefslogtreecommitdiffstats
path: root/build/extract.sh
blob: 17c6e3f39f6f026440cca386f2a29e954b0b9caf (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 localhost/${image})
path=$(buildah mount $container)
mkdir -p ../repos/
cp -ra "$path/ccpi/repos"/* ../repos/
buildah umount $container