I know Rafiki isn't ready yet, but I've been wanting to try running Rafiki on my local machine. Tested it on Mac mini M1 chip, but got crash when trying build with Docker.
The script I'm running:
yarn docker build backend -t rafiki-backend
It seems that the crash because I haven't set the Docker to run as non-root user, but I couldn't manage to set that up because I'm clueless as a mac user less than one year experience and to add to that, most guides to set Docker as non-root user seems written for Linux users.
Any help appreciated 🙏
Top comments (8)
Hey @radhyr, I don't think the problem is setting docker as non-root user as it's not possible nor required on macOS. I guess the problem is the node version you are using according to my experiences with macOS M1. You can try using node v14 and build the image. If it still doesn't work then you can create an issue about it on Rafiki repo, I would like to help you with that.
Thanks for coming by @omertoast
It seems changing node version to v14 doesn't help me much here. Here's the error screenshot I got:
I opened an issue per your suggestion here:
I think this has to do with bcrypt failing in Docker m1 chip
Hi @radhyr , Rafiki planning calls are open to community and are hosted every Monday at 17:00 GMT, via Google Meet . You could try joining if possible to get your questioned answered.
In between, I'll get back with more details about your question shortly.
 Google Meet joining info Video call link: meet.google.com/rdx-xoqn-iiq Or dial: (US) +1 408-831-2432 PIN: 472 676 485# More phone numbers: tel.meet/rdx-xoqn-iiq?pin=32630088...
Hi @radhyr , I checked with the team, and we don't have a dockerized version yet to run locally; it's a work in progress and the documentation should be available shortly! If you have any other questions, please let me know.
Oh, so that was the case. I thought I made a mistake somehow. Really looking forward for Rafiki to be available soon! Thanks for the reply Vineel! 👍
So I did troubleshooting myself by following clue I got from
bcryptdependency. This bug is exclusive to Mac with M1 chips and when building a Docker image.
"5.0.0"to downgrade and lock the culprit dependency that crashes Docker. From there I run
yarn rebuildand run the Docker build image again.
And there it goes 😎! I finally got Rafiki build in my machine.
But now the problem is Docker can't run the image somehow.
This is the error I got when tried running Rafiki: