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
49 env IGNORE_OSVERSION=yes ABI=${abi} pkg --rootdir ${rootdir} --repo-conf-dir ${workdir}/repos \
55 local workdir=$1; shift
80 local workdir=$1; shift
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
94 local workdir=$1; shift
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
108 local root_hash=$(sha256 -q < ${workdir}/rootfs.tar.gz)
109 local root_size=$(stat -f %z ${workdir}/rootfs.tar.gz)
117 …:[{\"created\":\"${create_time}\",\"created_by\":\"make-oci-image.sh\"}]}" > ${workdir}/config.json
118 local config_hash=$(sha256 -q < ${workdir}/config.json)
119 local config_size=$(stat -f %z ${workdir}/config.json)
121 …t\":\"sha256:${root_hash}\",\"size\":${root_size}}],\"annotations\":{}}" > ${workdir}/manifest.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 …{\"org.opencontainers.image.ref.name\":\"freebsd-${image}:${ver}\"}}]}" > ${workdir}/oci/index.json
128 ln ${workdir}/rootfs.tar.gz ${workdir}/oci/blobs/sha256/${root_hash}
129 ln ${workdir}/config.json ${workdir}/oci/blobs/sha256/${config_hash}
130 ln ${workdir}/manifest.json ${workdir}/oci/blobs/sha256/${manifest_hash}
132 tar -C ${workdir}/oci --xz --strip-components 1 --no-read-sparse -a -cf ${output} .
138 workdir=${PWD}/container-image-${image}
139 init_repo ${workdir} ${abi}
147 create_container ${workdir} ${base_workdir}
149 commit_container ${workdir} ${image} ${output}