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 \
|
--frontend dockerfile.v0 \
|
||||||
--local context=${buildfolder}/ \
|
--local context=${buildfolder}/ \
|
||||||
--local dockerfile=${buildfolder}/docker/ \
|
--local dockerfile=${buildfolder}/docker/ \
|
||||||
--output type=tar | \
|
--output type=oci,name="fixme:synapse_${synapse_version}" | \
|
||||||
podman import --change 'EXPOSE 8008/tcp' \
|
podman load &&
|
||||||
--change 'EXPOSE 8009/tcp' \
|
podman image tag localhost/synapse_${synapse_version}:latest ${synapse_image}:${synapse_version}
|
||||||
--change 'EXPOSE 8448/tcp' \
|
podman image rm localhost/synapse_${synapse_version}:latest
|
||||||
--change 'ENTRYPOINT ["/start.py"]' - localhost/matrixdotorg/synapse:${synapse_version} &&
|
|
||||||
podman rm --force buildkitd &&
|
podman rm --force buildkitd &&
|
||||||
podman rmi docker.io/moby/buildkit:latest &&
|
podman rmi docker.io/moby/buildkit:latest &&
|
||||||
rm -f ~/bin/buildctl
|
rm -f ~/bin/buildctl
|
||||||
|
|
Loading…
Reference in a new issue