Lines Matching +full:- +full:yq

16 ver=${rev}-${branch}-${arch}
18 echo "Building OCI freebsd${major}-${image} image for ${abi}"
20 . ${curdir}/tools/oci-image-${image}.conf
26 mkdir -p ${workdir}/repos
28 FreeBSD-base: {
42 if [ ! -d ${rootdir}/usr/share/keys/pkg/trusted ]; then
43 mkdir -p ${rootdir}/usr/share/keys/pkg/trusted
49 env IGNORE_OSVERSION=yes ABI=${abi} pkg --rootdir ${rootdir} --repo-conf-dir ${workdir}/repos \
50 install -yq "$@" || exit $?
51 rm -rf ${rootdir}/var/db/pkg/repos
59 # Convert FreeBSD architecture to OCI-style. See
83 if [ -d ${workdir}/rootfs ]; then
84 chflags -R 0 ${workdir}/rootfs
85 rm -rf ${workdir}/rootfs
87 mkdir -p ${workdir}/rootfs
89 tar -C ${workdir}/rootfs -xf ${base_workdir}/rootfs.tar.gz
101 # For compatibility with Podman, we must disable sparse-file
104 tar -C ${workdir}/rootfs --strip-components 1 --no-read-sparse -cf ${workdir}/rootfs.tar .
105 local diff_id=$(sha256 -q < ${workdir}/rootfs.tar)
106 gzip -f ${workdir}/rootfs.tar
107 local create_time=$(date -u +%Y-%m-%dT%TZ)
108 local root_hash=$(sha256 -q < ${workdir}/rootfs.tar.gz)
109 local root_size=$(stat -f %z ${workdir}/rootfs.tar.gz)
114 if [ -n "${oci_cmd}" ]; then
117 …id}\"]},\"history\":[{\"created\":\"${create_time}\",\"created_by\":\"make-oci-image.sh\"}]}" > ${…
118 local config_hash=$(sha256 -q < ${workdir}/config.json)
119 local config_size=$(stat -f %z ${workdir}/config.json)
122 local manifest_hash=$(sha256 -q < ${workdir}/manifest.json)
123 local manifest_size=$(stat -f %z ${workdir}/manifest.json)
125 mkdir -p ${workdir}/oci/blobs/sha256
126 echo "{\"imageLayoutVersion\": \"1.0.0\"}" > ${workdir}/oci/oci-layout
127 …ifest_size},\"annotations\":{\"org.opencontainers.image.ref.name\":\"freebsd-${image}:${ver}\"}}]}…
132 tar -C ${workdir}/oci --xz --strip-components 1 --no-read-sparse -a -cf ${output} .
135 # Prefix with "container-image-" so that we can create a unique work area under
138 workdir=${PWD}/container-image-${image}
141 if [ -n "${OCI_BASE_IMAGE}" ]; then
142 base_workdir=${PWD}/container-image-${OCI_BASE_IMAGE}