Lines Matching refs:workdir
23 local workdir=$1; shift
27 mkdir -p ${workdir}/repos
28 cat > ${workdir}/repos/base.conf <<EOF
40 local workdir=$1; shift
41 local rootdir=${workdir}/rootfs
57 env IGNORE_OSVERSION=yes ABI=${abi} pkg --rootdir ${rootdir} --repo-conf-dir ${workdir}/repos \
63 local workdir=$1; shift
88 local workdir=$1; shift
91 if [ -d ${workdir}/rootfs ]; then
92 chflags -R 0 ${workdir}/rootfs
93 rm -rf ${workdir}/rootfs
95 mkdir -p ${workdir}/rootfs
97 tar -C ${workdir}/rootfs -xf ${base_workdir}/rootfs.tar.gz
102 local workdir=$1; shift
112 tar -C ${workdir}/rootfs --strip-components 1 --no-read-sparse -cf ${workdir}/rootfs.tar .
113 local diff_id=$(sha256 -q < ${workdir}/rootfs.tar)
114 gzip -f ${workdir}/rootfs.tar
116 local root_hash=$(sha256 -q < ${workdir}/rootfs.tar.gz)
117 local root_size=$(stat -f %z ${workdir}/rootfs.tar.gz)
125 …:[{\"created\":\"${create_time}\",\"created_by\":\"make-oci-image.sh\"}]}" > ${workdir}/config.json
126 local config_hash=$(sha256 -q < ${workdir}/config.json)
127 local config_size=$(stat -f %z ${workdir}/config.json)
129 …t\":\"sha256:${root_hash}\",\"size\":${root_size}}],\"annotations\":{}}" > ${workdir}/manifest.json
130 local manifest_hash=$(sha256 -q < ${workdir}/manifest.json)
131 local manifest_size=$(stat -f %z ${workdir}/manifest.json)
133 mkdir -p ${workdir}/oci/blobs/sha256
134 echo "{\"imageLayoutVersion\": \"1.0.0\"}" > ${workdir}/oci/oci-layout
135 …{\"org.opencontainers.image.ref.name\":\"freebsd-${image}:${ver}\"}}]}" > ${workdir}/oci/index.json
136 ln ${workdir}/rootfs.tar.gz ${workdir}/oci/blobs/sha256/${root_hash}
137 ln ${workdir}/config.json ${workdir}/oci/blobs/sha256/${config_hash}
138 ln ${workdir}/manifest.json ${workdir}/oci/blobs/sha256/${manifest_hash}
140 tar -C ${workdir}/oci --xz --strip-components 1 --no-read-sparse -a -cf ${output} .
146 workdir=${PWD}/container-image-${image}
147 init_repo ${workdir} ${abi}
155 create_container ${workdir} ${base_workdir}
157 commit_container ${workdir} ${image} ${output}