spksrc icon indicating copy to clipboard operation
spksrc copied to clipboard

Kallithea

Open SamuelTilly opened this issue 14 years ago • 18 comments

Hi! great repository with allot of good software, i was wondering if you could make a package for RhodeCode? so that everyone can enjoy their private git/mercurial repositories. i guess the installation would be similar to sickbeard and couchpotato. http://rhodecode.org/

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

SamuelTilly avatar Jul 21 '12 23:07 SamuelTilly

I've alreay requested Redmine, which does the same, plus quite a lot more, and has a plugin model. Have you looked into that?

Not saying my request is better, just letting you know:-) Redmine has support for both mercurial and git too, along with subversion and a couple others:-)

BlueWombat avatar Jul 25 '12 17:07 BlueWombat

Iv'e been using Redmine wich is more of a project management software than source control management system. Yes Redmine has basic repository features but not the ability to automatically create and manage repositories, branching etc (if this hasen't changed since i used it).

Redmine is a great software and would be awesome to have in the repo as well! I just figured since Rhodecode is python based it would be easier to implement because we already have sickbeard and couchpotato that's also python based.

SamuelTilly avatar Jul 29 '12 15:07 SamuelTilly

Yeah, it would definitely be easier to compile and get running. But I don't see RhodeCode do anything Redmine doesn't do?

What do you need apart from creating your repo from within Redmine, exploring the repo, and the ability to install a plugin for color highlighting of code?

BlueWombat avatar Jul 29 '12 17:07 BlueWombat

It's rather what i don't need, i don't need a full project management software to manage my repositories, but i would really like a simple software like RhodeCode to do this. I haven't tried Redmine in a while but last time i tried it didn't support a bunch of features like automatically creating repositories, managing branches, forking etc

take a look at http://rhodecode.org/ under features and most of this won't be available for Redmine (at least from what i have experienced).

SamuelTilly avatar Jul 29 '12 18:07 SamuelTilly

"After all that hard work" is an understatement from the main readme :P i have been trying this morning for a couple of hours to make this package happen but i am running in to a couple of issues.

  1. Debuging, how do i know my package actualy works?
  2. I guess i need mercurial and paster as cross/package and dependencies for rhodecode, no idea on how to acheive this though. mercurial is needed for the application to have that support and paster for generating config and database(?) please correct me if im wrong.
  3. Lack of documentation on how every little script is connected in the build order.
  4. A lot of packages are depending on busybox, this really gets me confused, am i suppose to do like sabnbzd and have a cross/rhodecode and one spk/rhodecode?

SamuelTilly avatar Jul 30 '12 03:07 SamuelTilly

  1. If it builds, that's a good start. Then, you'll have to install it and try to start it. The start script is located at /var/packages/{yourpackage}/scripts/start-stop-status and all the stuff should be in /usr/local/{yourpackage}/
  2. I don't know RhodeCode so I can't tell you on what it depends. However, if there are actual dependencies, create a cross/{dep1} and so on
  3. Once you know how a package works, it is pretty straightforward : http://forum.synology.com/wiki/index.php/Synology_package_files (a bit outdated, but that's the spirit) http://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&ved=0CHcQFjAF&url=http%3A%2F%2Fdownload.synology.com%2Fdownload%2Fds%2Fuserguide%2FSynology%2520NAS%2520Server%25203rd-Party%2520Apps%2520Integration%2520Guide.pdf&ei=KJMWUP7xDcTqrAeQ34HoCg&usg=AFQjCNF1gASkfe_ze9oKlR3C-F58mnsuEA&sig2=m3p0U0HRZu8HedzzWyOVEw
  4. Busybox is needed if you need to manage (create/delete) system users so that the binaries don't run with root privileges (for obvious security reasons) or some other binaries (nice, ionice, etc.)

Basically, for RhodeCode, I suggest you use SickBeard as base SPK rather than SABnzbd.

Diaoul avatar Jul 31 '12 07:07 Diaoul

Thanks! all this information is good, i guess i need to run busybox then because RhodeCode will need to be run as a system user without root privileges. I'll have to read up on how that works. I'll check how SickBeard is setup and go from there. I am a bit reluctant to try it on my physical box because i'm afraid the launch script will mess up the startup process of my box, do i not need to worry about this? Thanks again for all this information.

SamuelTilly avatar Aug 03 '12 21:08 SamuelTilly

@eldamar Not unless you do something permanent in your startup script, which would be odd to begin with.

BlueWombat avatar Aug 21 '12 22:08 BlueWombat

WIP. It's working on my Synology right now, but I need to work on quite a few issues before it's ready for publishing.

@Diaoul or @moneytoo: this app (similar to Mozilla Sync Server) has quite an amount of additional python modules. There are a couple which need to be compiled, so it's obvious for those, but that leaves me with about 33 (!) others for this app. Installation time with pybundle with be going through the roof... Do you prefer installing them via pybundle, adding them to Python as dependency, or is there another possibility? I've been working on wheel to replace bundles, but it seems to be hit-and-miss wrt installation atm, so that's not really a viable option.

Dr-Bean avatar Dec 11 '13 15:12 Dr-Bean

Put only in spksrc the modules that require cross compilation i.e. modules with a C extension. If you think the installation is going to take some time, you can see debian-chroot that features a background installation process.

I think the best would be to have wheels indeed, what is the problem with that exactly?

Diaoul avatar Dec 11 '13 15:12 Diaoul

Ok, that's fine then. With background installation for debian-chroot you are referring to chaining the commands like cmd1 && cmd2?. That would work if I split up the pybundles in different sets, although I have no idea if pip install can be invoked twice in a venv. Besides that, CPU-usage on especially lower- and mid-end Synologys will be stuck close to 100% on one pip install, so it might not improve installation time. I noticed Horde has a different approach by jumping to postinst_bg, that might work too.

Wrt wheels: Using a virtualenv with --system-site-packages, pip install --force-reinstall -r requirements.txt tries to downgrade system site packages, instead of installing the package in the isolated venv. No combination of available switches seem to resolve that. Installing the wheels one-by-one does work, but not all packages can handle that. Subliminal and Flexget won't work, NZBConfig and Sync Server do work. Possibly related to installation order/dependencies, but I haven't verified that yet. I can push a branch with my approach so far, if you're interested.

Dr-Bean avatar Dec 11 '13 16:12 Dr-Bean

cmd1 && cmd2 & or this https://github.com/SynoCommunity/spksrc/blob/develop/spk/horde/src/installer.sh#L99 EDIT: Ok, now I read you looked at Horde... :)

moneytoo avatar Dec 11 '13 16:12 moneytoo

Going for your Horde approach, I think :) Locking the package interface for anything more than a few minutes is annoying imo, and chances are that I can't get the installation time low enough for my own taste ;) Thanks for the suggestions.

Dr-Bean avatar Dec 11 '13 21:12 Dr-Bean

That's a shame wheel don't fit our purpose here. Maybe that's not the indented behavior, did you opened an issue https://bitbucket.org/dholth/wheel/ ?

Diaoul avatar Dec 12 '13 21:12 Diaoul

See #764, it actually works now :) So, I'll give that a go for this package. Should be a nice testcase for existing packages with bundles too.

Dr-Bean avatar Dec 12 '13 21:12 Dr-Bean

Just pushed the first 'unpolished' version to my repo. Wheels are working with that, and the install duration is better than expected.

Dr-Bean avatar Jan 05 '14 22:01 Dr-Bean

RhodeCode is no longer open source but a fork have been made called Kallithea https://kallithea-scm.org/, would love to see this available on my synology :)

SamuelTilly avatar Jan 07 '15 21:01 SamuelTilly

Just a note, rhodecode is OpenSource, sources are available here: https://code.rhodecode.com/rhodecode-enterprise-ce

marcinkuzminski avatar Jul 19 '17 17:07 marcinkuzminski