Skip to content

Multi-platform Docker builds - #1129

Open
kokes wants to merge 1 commit into
sourcegraph:mainfrom
kokes:kokes/universal-oci
Open

Multi-platform Docker builds#1129
kokes wants to merge 1 commit into
sourcegraph:mainfrom
kokes:kokes/universal-oci

Conversation

@kokes

@kokes kokes commented Aug 12, 2026

Copy link
Copy Markdown

I noticed the built image is only for platform amd64, not the somewhat widely used arm64. The sad reality here is that there look to be CGO bits, so the cross platform build is kinda slow (20 minutes as opposed to 3 minutes currently).

Not sure if we can adjust caching to speed this up, I just tried a hot run (~30 seconds) and then changed some code and was back to 20 minutes.

If this performance (albeit only on pushes to main) is unreasonably slow for you, I fully understand if you close this. Just wanted to throw it out there for your consideration.

@keegancsmith keegancsmith left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are no CGO bits, in fact in our Dockerfile we set CGO_ENABLED=0.

I think what you are seeing is the building of universal-ctags we ship with the image. Do you have any ideas on how we could maybe share that across builds? That should change very rarely (hasn't changed in years).

Before I approve I'm interested in if you actually use ARM + zoekt or intend to? Interesting in know more :)

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.

2 participants