summaryrefslogtreecommitdiffstats
path: root/run/update-from-devel.sh
blob: 2be835f26c9b8ed899ec4d4dc237a3bb1ef8fb6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/bash

set -o errexit

. config.sh

if [ ! -d ../repos ]; then
    buildah unshare bash ../build/extract.sh ${image}
fi

podman run --name "ccpi-devel" -it --hooks-dir /usr/share/containers/oci/hooks.d/ $volumes ${image} bash /root/setup/provision.sh
podman container cp ../repos/ ccpi-devel:/ccpi/
podman container commit ccpi-devel ${image}:devel
podman rm ccpi-devel