-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support macOS (formerly: unable to build bottlerocket on macos) #173
Comments
Arnaldo's question: bottlerocket-os/bottlerocket#2685 (comment) Hey, @pat-s I read the logs and this is interesting (I formatted a little the output to make it more readable)
The process was killed, probably because of limits on the VM that docker starts in MAC, @webern, I remember you had problems with docker in MAC, did you ever experienced something like this? |
When I had problems with building Bottlerocket on macOS, it was a long time ago, on x86_64. At that time it was a few simple bash commands that weren't available on the default bash version. (Also it was painfully slow due to filesystem virtualization). This issue appears to be different. As far as I can tell, all we have to go on is |
I would bump this as a colleague of mine tested building twoliter from scratch, including a set of variants and it did work. |
Another alternative that would work well for us would be to update the published crate: https://crates.io/crates/twoliter |
Hey @mikn, thanks for the feedback! I'm a little surprised that twoliter builds on MacOS succeeded. We have a somewhat odd Linux-specific performance optimization that works around limitations in docker/BuildKit. As a quick explanation of that -- we use BuildKit to isolate and drive builds that twoliter performs. Docker is somewhat opinionated on how it isolates its build context -- the most common way that the build context is populated is by copying all of the files in the build context and sending them to the docker daemon. This is a pretty big time expenditure as the number and size of files in the build context grows. To get around copying everything, pipesys uses two perhaps more-niche Linux/Unix features:
While We chatted out-of-band about this a bit, but perhaps there's Linux VMs involved in the mix on your end somewhere? Despite that, I'm interested in publishing |
Hi @cbgbt 👋🏻 I'm the famous colleague. And you are correct, I'm running everything from within a Colima VM which runs Ubuntu as I could not get it to run properly directly on MacOS. I switched over to building from an x86_64 machine directly instead as my desktop is much stronger and that is what we will run on in the end, but I'd be happy to provide whatever information you might need if you decide to add support for MacOS in the end 🙂 I got stuck at the following error, it happens for all the packages.
|
Originally posted by @pat-s in bottlerocket-os/bottlerocket#2685 (comment)
The text was updated successfully, but these errors were encountered: