Open efekarakus opened 1 year ago
Is this something that is present in CodeBuild and could be used as is in pipelines?
I haven't tested if buildx
is present in CodeBuild but I think even if it's not it should be possible to use it in pipelines.
We can download the plugin ourselves in the buildspec
so that it's always present for customers. From then on running docker buildx
should work.
We should explore enabling by default
zstd
compression while building the container image. We can check ifdocker buildx
is present and if so build with the flags mentioned in the blog post:Otherwise, we'll default to the regular
docker build
that's currently done.For our pipelines, I believe we would need to update the
buildspec.yml
to automatically download the buildx plugin: https://github.com/docker/buildx#linux-packagesWe can test the performance with a sample Ruby on Rails application which should be a pretty large container image.