Multi-platform Docker builds - #1129
Conversation
keegancsmith
left a comment
There was a problem hiding this comment.
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 :)
|
@keegancsmith Hey Keegan, happy to elaborate
I'll send a followup PR that incorporates the ideas above and solves the multi-platform issue in a much cleaner way. Edit: looking over the code, i'm realising now that the very new Amp Orbs setup already uses the prebuilt ctags approach, so we might want to consolidate this across the repo maybe? |
|
Superseded by #1130, closing. |
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.