Container builds are very slow after adding new platforms #2295
Labels
area:collector
Issues for deploying collector
area:opamp
Issues for the opamp resource
area:target-allocator
Issues for target-allocator
Component(s)
collector, target allocator, opamp bridge
Describe the issue you're reporting
After starting to build container images for
ppc64le
ands390x
, our container image builds became ~4x slower, going from 30 minutes to nearly 2 hours onmain
. See operator, for example: https://github.com/open-telemetry/opentelemetry-operator/actions/workflows/publish-images.yaml, but this also affects target allocator and Opamp bridge.This is most likely caused by worse emulation performance in QEMU for these architectures, as we build our binaries within the container build process.
We should instead cross-compile the images and copy them into the image during the build. This adds an overhead of managing the Go toolchain in our CI, but our dependencies are fairly manageable, so this shouldn't be too big of a problem.
The text was updated successfully, but these errors were encountered: