-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
arm64 arch docker image #61
Conversation
gaganyaan2
commented
Aug 28, 2022
- arm64 image can be used to run on Raspberry pi, aws graviton, other cloud arm based instance and saves cost
- arm64 image can be used to run on aws graviton, Raspberry pi, other cloud arm based instance and saves cost
Hi @koolwithk, happy to give it a go but I am doubtful that would work out of the box. I don't currently have the bandwidth to get the project work on arm64, mainly because its main dependencies (i.e. cardano-node / cardano-ledger) have no desire to support arm64 as stated in some of their issues on Github. |
I tried with
After some troubleshooting I got to know it's because So I tried with
Here is failed Github CI with same error message https://github.com/koolwithk/kupo/actions/runs/3054678154/jobs/4926865360#step:11:961 After referring to NixOS/nix#5258 (comment) I'm able to bypass above error with
However as per NixOS/nix#2651 (comment) it's an insecure method. I will take a look if there is any way to fix this. Or We can also have separate I have ran the Github CI here https://github.com/koolwithk/kupo/actions/runs/3054879616/jobs/4927301485 but build is it's taking time. Let's see how it goes. |
@koolwithk thanks for giving this a closer look. Given the size of the Dockerfile and, because most of the build is in the end delegated to Nix, I think it is okay to keep a separate |
Erf, the build went over the resource limit for Github actions 😬 |
qemu emulation is very slow for |
I've tried building it through Nix on a Mac M1, without success. Through normal cabal though it worked fine. I can't easily produce a static binary from cabal only, but that may not be that much of a problem for a docker image. We just need to install the relevant system dependencies. |