From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH] imagetypes: Set tmpdir for skopeo
Date: Tue, 16 Jan 2024 13:48:06 +0200 [thread overview]
Message-ID: <20240116114806.537208-1-amikan@ilbers.de> (raw)
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
next reply other threads:[~2024-01-16 11:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 11:48 Anton Mikanovich [this message]
2024-01-23 9:11 ` Uladzimir Bely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240116114806.537208-1-amikan@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox