build images : utiliser le home comme TMPDIR
This commit is contained in:
parent
ea0c55d863
commit
3a28c5dc82
|
@ -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
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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' \
|
||||
|
|
Loading…
Reference in a new issue