From 8150a5b5456c8289d3de85d54eb63cf8db23fe26 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Tue, 23 May 2023 18:40:12 +0200 Subject: [PATCH] Revert "Synapse : construire image sans buildkit #15" This reverts commit d10cb82e24dd9ebcbfe56600787ad79cf267394e. --- podman-matrix/ci_build-images.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/podman-matrix/ci_build-images.sh b/podman-matrix/ci_build-images.sh index 68d7c93..5ad7659 100755 --- a/podman-matrix/ci_build-images.sh +++ b/podman-matrix/ci_build-images.sh @@ -12,7 +12,16 @@ buildfolder=/tmp/synapse-$$ if ! podman image exists ${synapse_image}:${synapse_version}; then mkdir ${buildfolder} && curl -sSfL -- "https://github.com/matrix-org/synapse/archive/refs/tags/${synapse_version}.tar.gz" | \tar xz --strip-components 1 -C ${buildfolder}/ && { - podman build -t ${synapse_image}:${synapse_version} -f ${buildfolder}/docker/Dockerfile ${buildfolder}/ + podman image pull docker.io/moby/buildkit:latest + podman container run -d --name buildkitd --privileged docker.io/moby/buildkit:latest && + my_buildctl --addr=podman-container://buildkitd build \ + --frontend dockerfile.v0 \ + --local context=${buildfolder}/ \ + --local dockerfile=${buildfolder}/docker/ \ + --output type=oci,name="${synapse_image}:${synapse_version}" | \ + podman image load && + podman container rm --force buildkitd && + podman image rm docker.io/moby/buildkit:latest } rm -rf ${buildfolder} else