From 7abe53f656c90e023900cc5d8b72dfd342dd8d57 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 29 Oct 2023 15:32:34 +0100 Subject: [PATCH] build image script : force TMPDIR --- podman-framadate/ci_build-images.sh | 2 +- podman-jitsi/ci_build-images.sh | 12 ++++++------ podman-privatebin/ci_build-images.sh | 2 +- podman-seafile/ci_build-images.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/podman-framadate/ci_build-images.sh b/podman-framadate/ci_build-images.sh index 986de83..510d150 100755 --- a/podman-framadate/ci_build-images.sh +++ b/podman-framadate/ci_build-images.sh @@ -8,7 +8,7 @@ ensure_pwd_is_scriptdir ensure_not_root if ! podman image exists ${framadate_image}:${framadate_version}; then - podman image build \ + TMPDIR=${HOME} podman image build \ -t "${framadate_image}":"${framadate_version}" \ --build-arg=version="${framadate_version}" \ container/ || retval=false diff --git a/podman-jitsi/ci_build-images.sh b/podman-jitsi/ci_build-images.sh index 8b9df12..6e55e65 100755 --- a/podman-jitsi/ci_build-images.sh +++ b/podman-jitsi/ci_build-images.sh @@ -12,11 +12,11 @@ buildfolder=/tmp/docker-jitsi-meet-$$ build_base() { podman image pull docker.io/library/debian:bullseye-slim if ! podman image exists localhost/jitsi/base:${version}; then - podman image build -t localhost/jitsi/base:${version} ${buildfolder}/base/ && + TMPDIR=${HOME} podman image build -t localhost/jitsi/base:${version} ${buildfolder}/base/ && podman image tag localhost/jitsi/base:${version} localhost/jitsi/base:latest || exit 255 fi if ! podman image exists localhost/jitsi/base-java:${version}; then - podman image build -t localhost/jitsi/base-java:${version} ${buildfolder}/base-java && + TMPDIR=${HOME} podman image build -t localhost/jitsi/base-java:${version} ${buildfolder}/base-java && podman image tag localhost/jitsi/base-java:${version} localhost/jitsi/base-java:latest || exit 255 fi base_cleanup=true @@ -26,19 +26,19 @@ mkdir ${buildfolder} && if curl -sSfL -- "https://github.com/jitsi/docker-jitsi-meet/archive/refs/tags/${version}.tar.gz" | tar xz --strip-components 1 -C ${buildfolder}/ ; then if ! podman image exists git.garbaye.fr/garbaye/jitsi-jvb:${version}; then build_base - podman image build -t git.garbaye.fr/garbaye/jitsi-jvb:${version} ${buildfolder}/jvb/ || exit 255 + TMPDIR=${HOME} podman image build -t git.garbaye.fr/garbaye/jitsi-jvb:${version} ${buildfolder}/jvb/ || exit 255 fi if ! podman image exists git.garbaye.fr/garbaye/jitsi-jicofo:${version}; then build_base - podman image build -t git.garbaye.fr/garbaye/jitsi-jicofo:${version} ${buildfolder}/jicofo/ || exit 255 + TMPDIR=${HOME} podman image build -t git.garbaye.fr/garbaye/jitsi-jicofo:${version} ${buildfolder}/jicofo/ || exit 255 fi if ! podman image exists git.garbaye.fr/garbaye/jitsi-prosody:${version}; then build_base - podman image build -t git.garbaye.fr/garbaye/jitsi-prosody:${version} ${buildfolder}/prosody/ || exit 255 + TMPDIR=${HOME} podman image build -t git.garbaye.fr/garbaye/jitsi-prosody:${version} ${buildfolder}/prosody/ || exit 255 fi if ! podman image exists git.garbaye.fr/garbaye/jitsi-web:${version}; then build_base - podman image build -t git.garbaye.fr/garbaye/jitsi-web:${version} ${buildfolder}/web/ || exit 255 + TMPDIR=${HOME} podman image build -t git.garbaye.fr/garbaye/jitsi-web:${version} ${buildfolder}/web/ || exit 255 fi podman image prune -a -f --filter dangling=true podman image prune -a -f --filter intermediate=true diff --git a/podman-privatebin/ci_build-images.sh b/podman-privatebin/ci_build-images.sh index c3e7f5f..65a17e7 100755 --- a/podman-privatebin/ci_build-images.sh +++ b/podman-privatebin/ci_build-images.sh @@ -12,7 +12,7 @@ buildfolder=/tmp/privatebin-$$ if ! podman image exists ${privatebin_image}:${privatebin_version}; then if git clone -b ${privatebin_version} --depth=1 https://github.com/PrivateBin/docker-nginx-fpm-alpine ${buildfolder} ; then sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/Dockerfile && - podman image build \ + TMPDIR=${HOME} podman image build \ -t "${privatebin_image}":"${privatebin_version}" \ ${buildfolder} || retval=false podman image prune -a -f --filter dangling=true diff --git a/podman-seafile/ci_build-images.sh b/podman-seafile/ci_build-images.sh index df0d9a5..a931469 100755 --- a/podman-seafile/ci_build-images.sh +++ b/podman-seafile/ci_build-images.sh @@ -18,7 +18,7 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then sed_in_place " -i https://pypi.tuna.tsinghua.edu.cn/simple/" " " ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile && sed_in_place 'wget https://seafile-downloads.oss-cn-shanghai.aliyuncs.com' 'wget -q https://download.seadrive.org' ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile && sed_in_place 'tar -zxvf' 'tar -zxf' ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile && - podman image build \ + TMPDIR=${HOME} podman image build \ -t ${seafile_image}:${seafile_release} \ -f ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile \ ${buildfolder} || retval=false