#! /bin/sh # Build an Open Container Initiative (OCI) container image curdir=$1; shift rev=$1; shift branch=$1; shift arch=$1; shift image=$1; shift major=${rev%.*} minor=${rev#*.} abi=FreeBSD:${major}:${arch} echo "Building OCI freebsd${major}-${image} image for ${abi}" . ${curdir}/tools/oci-image-${image}.conf init_workdir() { local abi=$1; shift local workdir=$(mktemp -d -t oci-images) mkdir ${workdir}/repos cat > ${workdir}/repos/base.conf <