2

I am e PHP Developer and I have a Pi at hand, recently I was setting up a Jenkins-CI in a VM with headless raspbian. And then it hit me, What about the Pi. So my questions are:

  1. Will the Pi handle a Jenkins CI?
  2. Will it play nice as GIT server (This is dumb question, please ignore it :D)
  3. Will it be slow as a local post production server, i.e to deploy the application and run it(to copy the sources on the web server/Apache directory)
  4. What about throwing Gearman in the Mix ?

Everything will be running on a single Pi with headless raspbian within local network. Basically I do not want to have a running VM all the time.

11
  • Have you considered that the Pi does not have much memory for a java based build server. Unless you are careful it wil swap to death. If gitolite is available it will work nicely as a git server. Commented Mar 10, 2014 at 21:39
  • Basically with PHP the thing is a little more effortles i think. (Just runing the unit tests, which I think is not like building Java/C or any other application, wrong?) and I do want it just to push local changes and try out the code, if it gets build - back to the IDE otherwise. Will I exhaust it too much Commented Mar 10, 2014 at 21:42
  • Jenkins is written in Java. Commented Mar 10, 2014 at 21:44
  • my point was that the builds should not be as resource intensive as the would be, if the builds ware for Java/C/Etc. So with the overhead of jenkins the Pi should not get scared. At least that is what i think Commented Mar 10, 2014 at 22:13
  • Well, give it a try. If you have either OpenJDK or Oracle Java installed, it is just running "java -jar jenkins.war". Commented Mar 10, 2014 at 22:41

3 Answers 3

2

Not a dumb question You could set it up as a private git server http://www.instructables.com/id/GitPi-A-Private-Git-Server-on-Raspberry-Pi/

For others depends on their cpu and ram use and if its going to be slow/lag. I've run a flask based app and it wasn't much slower than on a normal server but using nginx not apache as per http://elinux.org/RPi_Nginx_Webserver and with uwsgi raspberrywebserver.com/cgiscripting/setting-up-nginx-and-uwsgi-for-cgi-scripting.html

0

According to this the Raspberry Pi is unable to run Jenkins-Ci

3
  • 3
    java.io.IOException: No space left on device looks very solvable with a cheap USB disk drive. And the bug he raised has been closed. Commented May 4, 2014 at 9:47
  • I don't think that's accurate with Pi 3. There are several articles on the internet to show how to do this. Commented Jun 21, 2016 at 1:31
  • This is non-sense. I'm running Jenkins on Rpi/Rpi2 without any problems, but using 32GB SD card with symlinked /var/lib/jenkins to other (non-root) partition which has enough space for jobs
    – rkosegi
    Commented Jul 7, 2016 at 17:19
0

Probably yes you can run it. Can you use it? NO!

I've tried Teamcity (same container as Jenkins) to build Android project. i7 ~90secs, Pi II ~30 minutes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.