Matrix image build : switch buildkit output to OCI format
This commit is contained in:
parent
0979e8daee
commit
a0d11e2a67
|
@ -19,11 +19,10 @@ if ! podman image exists localhost/matrixdotorg/synapse:${synapse_version}; then
|
|||
--frontend dockerfile.v0 \
|
||||
--local context=${buildfolder}/ \
|
||||
--local dockerfile=${buildfolder}/docker/ \
|
||||
--output type=tar | \
|
||||
podman import --change 'EXPOSE 8008/tcp' \
|
||||
--change 'EXPOSE 8009/tcp' \
|
||||
--change 'EXPOSE 8448/tcp' \
|
||||
--change 'ENTRYPOINT ["/start.py"]' - localhost/matrixdotorg/synapse:${synapse_version} &&
|
||||
--output type=oci,name="fixme:synapse_${synapse_version}" | \
|
||||
podman load &&
|
||||
podman image tag localhost/synapse_${synapse_version}:latest ${synapse_image}:${synapse_version}
|
||||
podman image rm localhost/synapse_${synapse_version}:latest
|
||||
podman rm --force buildkitd &&
|
||||
podman rmi docker.io/moby/buildkit:latest &&
|
||||
rm -f ~/bin/buildctl
|
||||
|
|
Loading…
Reference in a new issue