Content
OP on Raspberry Pi ?
Added by Marcel Hodan over 8 years ago
Hey fellows,
i’m trying to install OP on my Raspberry PI for performance tests. I’d like to know if it’s possible to run OP on a RPi.
But within the installation I always get kicked out at “4. Install Openproject” - “bundle install”. Because the “gem install libv8 -v ‘3.11.8.17’”
command could not finish. (Processor Architecture is not suitable “#error Target architecture ia32 is only supported on ia32 host”
Is there another library I could use to install the bundle?
Or does anyone know a workaround for that problem?
I’m looking forward to hearing from you :)
Replies (7)
Hi Marcel,
the current libv8 build isn’t setup for ARM and libv8 is a dependency of therubyracer. therubyracer is only needed for Precompile assets. Now you have 2 options
1. Precompile assets on a different machine where you can install libv8 and move the stuff to your RasPI
2. Install node.js instead of therubyracer
Best
Ratzi
So I could setup OP in another environment and copy the configured folder?
(then I have to adjust db param for sure)
Hello Marcel,
yes you can ;)
In your case it should work if you just copy the ‘public/assets’ folder after you run
bundle exec rake assets:precompile
on the other machine. If you try this you have to adapt the bundle install run on the RasPI like this:Copying the whole folder might work too but there is a lot to consider and you should first try to copy only the ‘public/assets’ folder.
Best
Ratzi
After spending way too much time on various permutations of software versions & tweaks, I actually got it working on a Raspberry Pi 4 (4gb ram). I'll write up my notes, have another go from scratch and then put this up here - it's surprisingly response and show actually work fine for small teams.
I'll leave that here as well. This is an instructions set to get the OpenProject stable/10 release working on ARM boards, tested on a Raspberry PI 4 system with 4 GB RAM on Raspian Buster. A few tweaks are required to make it work, so think carefully before deploying this in a production environment, but otherwise it probably makes for the most cost and power effective OpenProject instance possible.
https://github.com/madewhatnow/OpenProjectRaspberryPi/blob/master/index.md
Happy to receive & incorporate any feedback!
Update - as of Feb 2021, OpenProject 11 works on a Raspberry Pi 4. Much less hassle, seems more robust and throws a lot fewer error messages. Kudos to the devs! I updated the instructions, and have an image file for people who want to give it a go. And I won't abandon my mailbox this time round.
Are you running as a docker image? If so, is it pushed to dockerhub, which could be helpful for others as well?
Thanks in advance.