From 3a28c5dc82eb96ef4bb50d4ed8078a805a898651 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 22 Oct 2023 08:20:47 +0200 Subject: [PATCH] build images : utiliser le home comme TMPDIR --- podman-hedgedoc/ci_build-images.sh | 2 +- podman-matrix/ci_build-images.sh | 2 +- podman-peerjs/ci_build-images.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/podman-hedgedoc/ci_build-images.sh b/podman-hedgedoc/ci_build-images.sh index 9bf73ae..474e721 100755 --- a/podman-hedgedoc/ci_build-images.sh +++ b/podman-hedgedoc/ci_build-images.sh @@ -12,7 +12,7 @@ buildfolder=/tmp/hedgedoc-$$ if ! podman image exists ${hedgedoc_image}:${hedgedoc_version}; then mkdir ${buildfolder} && if git clone --depth=1 https://github.com/hedgedoc/container ${buildfolder}/ ; then - podman image build -t ${hedgedoc_image}:${hedgedoc_version} -f ${buildfolder}/alpine/Dockerfile ${buildfolder}/ + TMPDIR=${HOME} podman image build -t ${hedgedoc_image}:${hedgedoc_version} -f ${buildfolder}/alpine/Dockerfile ${buildfolder}/ fi || retval=false rm -rf ${buildfolder} podman image prune -a -f --filter dangling=true diff --git a/podman-matrix/ci_build-images.sh b/podman-matrix/ci_build-images.sh index 30fb248..ccd58fc 100755 --- a/podman-matrix/ci_build-images.sh +++ b/podman-matrix/ci_build-images.sh @@ -13,7 +13,7 @@ if ! podman image exists ${synapse_image}:${synapse_version}; then mkdir ${buildfolder} && if curl -sSfL -- "https://github.com/matrix-org/synapse/archive/refs/tags/${synapse_version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ ; then rm -rf "${HOME}/buildah-cache-${UID}" - TMPDIR=${HOME} podman build -t ${synapse_image}:${synapse_version} -f ${buildfolder}/docker/Dockerfile ${buildfolder}/ && + TMPDIR=${HOME} podman image build -t ${synapse_image}:${synapse_version} -f ${buildfolder}/docker/Dockerfile ${buildfolder}/ && podman image prune -f fi rm -rf ${buildfolder} diff --git a/podman-peerjs/ci_build-images.sh b/podman-peerjs/ci_build-images.sh index 2cb35c3..0e75523 100755 --- a/podman-peerjs/ci_build-images.sh +++ b/podman-peerjs/ci_build-images.sh @@ -12,7 +12,7 @@ buildfolder=/tmp/peerjs-server-$$ if ! podman image exists ${upstream_images}:${version}; then mkdir ${buildfolder} && curl -sSfL -- "https://github.com/peers/peerjs-server/archive/refs/tags/v${version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ && - podman image build \ + TMPDIR=${HOME} podman image build \ --label org.opencontainers.image.description='PeerServer helps establishing connections between PeerJS clients. Data is not proxied through the server.' \ --label org.opencontainers.image.source='https://github.com/peers/peerjs-server' \ --label org.opencontainers.image.title='PeerServer' \