* [PATCH] imagetypes: Set tmpdir for skopeo
@ 2024-01-16 11:48 Anton Mikanovich
2024-01-23 9:11 ` Uladzimir Bely
0 siblings, 1 reply; 2+ messages in thread
From: Anton Mikanovich @ 2024-01-16 11:48 UTC (permalink / raw)
To: isar-users; +Cc: Anton Mikanovich
Skopeo stores temporary files in /var/tmp by default.
This can cause following error on copy command:
Error writing blob: write /var/tmp/docker-tarfile-blob454201730: no space left on device
To remove dependence from root filesystem free space set current recipe
workdir as tmpdir for skopeo.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta/classes/imagetypes_container.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/imagetypes_container.bbclass b/meta/classes/imagetypes_container.bbclass
index bd751280..c2e84809 100644
--- a/meta/classes/imagetypes_container.bbclass
+++ b/meta/classes/imagetypes_container.bbclass
@@ -75,6 +75,7 @@ convert_container() {
rm -f "${image_archive}"
bbdebug 2 "Converting OCI image to ${container_type}"
skopeo --insecure-policy copy \
+ --tmpdir "${WORKDIR}" \
"oci:${oci_img_dir}:${tag}" "${target}"
;;
"oci")
@@ -86,6 +87,7 @@ convert_container() {
die "Adding the container image to a container runtime (${container_type}) not supported if running from a container (e.g. 'kas-container')"
fi
skopeo --insecure-policy copy \
+ --tmpdir "${WORKDIR}" \
"oci:${oci_img_dir}:${tag}" \
"${container_type}:${image_name}:${tag}"
;;
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] imagetypes: Set tmpdir for skopeo
2024-01-16 11:48 [PATCH] imagetypes: Set tmpdir for skopeo Anton Mikanovich
@ 2024-01-23 9:11 ` Uladzimir Bely
0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2024-01-23 9:11 UTC (permalink / raw)
To: Anton Mikanovich, isar-users
On Tue, 2024-01-16 at 13:48 +0200, Anton Mikanovich wrote:
> Skopeo stores temporary files in /var/tmp by default.
> This can cause following error on copy command:
>
> Error writing blob: write /var/tmp/docker-tarfile-blob454201730: no
> space left on device
>
> To remove dependence from root filesystem free space set current
> recipe
> workdir as tmpdir for skopeo.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
> meta/classes/imagetypes_container.bbclass | 2 ++
> 1 file changed, 2 insertions(+)
>
Applied to next.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-23 9:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 11:48 [PATCH] imagetypes: Set tmpdir for skopeo Anton Mikanovich
2024-01-23 9:11 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox