Skip to content

Added multi-arch support.#52

Open
barbun wants to merge 2 commits into
uselagoon:mainfrom
barbun:main
Open

Added multi-arch support.#52
barbun wants to merge 2 commits into
uselagoon:mainfrom
barbun:main

Conversation

@barbun

@barbun barbun commented Jun 8, 2026

Copy link
Copy Markdown

Issue

Database images are built with plain docker build with no --platform flag so the resulting image inherits the builder's native architecture — typically linux/amd64.

That causes two problems:

  • Local development on Apple Silicon - pulling and running these images forces amd64 emulation, with a noticeable performance penalty for MariaDB/MySQL workloads.
  • No opt-in multi-arch support - even though upstream base images publish multi-arch manifests, the task never produces a matching multi-arch output image.

Proposed solution

Build and push sanitised database images as multi-arch manifests using docker buildx.

@shreddedbacon

Copy link
Copy Markdown
Member

This needs some investigation to whether an underlying docker-host that would build these images has access to QEMU to be able to build multi-arch.

Comment thread internal/builder/builder.go Outdated
Comment thread mariadb-image-builder
@barbun
barbun requested a review from shreddedbacon June 23, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants