Skip to content

Setup multi-arch builds for Docker.#401

Merged
goccy merged 3 commits into
goccy:mainfrom
aebrahim:multiarch_build
Feb 5, 2026
Merged

Setup multi-arch builds for Docker.#401
goccy merged 3 commits into
goccy:mainfrom
aebrahim:multiarch_build

Conversation

@aebrahim

Copy link
Copy Markdown
Contributor

A static build is not yet possible in ARM64.

@aebrahim

aebrahim commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

@goccy sorry to bother you but this has been sitting for 9 months - mind letting me know if there's anything I can do to improve it?

Comment thread Dockerfile
ARG DEBIAN_VERSION=bookworm

ARG VERSION
FROM golang:${DEBIAN_VERSION} AS cgo_builder

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned that by not using the zetasqlite image, the build cache won't be effective. Also, for maintenance purposes, the build command needs to be consolidated into the Makefile.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While that's totally fair, I think this is still better for a couple of reasons!

  1. That container is not multi-arch.
  2. The build done by referencing the library in another image will not be reproducible, and will be subject to skew from what zetasql version the other image happened to be at the time.
  3. There is not much to cache anyways, as the build is pretty quick (a couple of minutes on my machine). If you want, I can follow this up with a CI/CD PR to automatically build the docker containers on release.

@aebrahim aebrahim Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wait you already have the docker CI/CD built to run on release, the one I modified.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the docker build step is already in the Makefile, that has not changed!

Comment thread Dockerfile Outdated
@aebrahim

aebrahim commented Jan 7, 2026

Copy link
Copy Markdown
Contributor Author

Hi @goccy - I ran the docker build workflow on my fork, and it took 7 minutes with no cache (run)

@aebrahim aebrahim requested a review from goccy January 7, 2026 18:25
@aebrahim

aebrahim commented Feb 5, 2026

Copy link
Copy Markdown
Contributor Author

Hi @goccy just bumping this again! This will make it much easier to use this on non-x84 systems!

@goccy

goccy commented Feb 5, 2026

Copy link
Copy Markdown
Owner

Thank you for your contribution ! LGTM 👍

@goccy goccy merged commit 1bffdb5 into goccy:main Feb 5, 2026
4 checks passed
@aebrahim

Copy link
Copy Markdown
Contributor Author

Thank you so much @goccy for accepting my change and maintaining this package!

@aebrahim aebrahim deleted the multiarch_build branch February 26, 2026 20:28
@aaemnnosttv

Copy link
Copy Markdown

Great to see this land! I believe a new release is still needed before the new arm64 build is available, correct?

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.

5 participants