Kallithea
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.
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:-)
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.
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?
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).
"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.
- Debuging, how do i know my package actualy works?
- 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.
- Lack of documentation on how every little script is connected in the build order.
- 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?
- 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}/
- 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
- 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
- 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.
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.
@eldamar Not unless you do something permanent in your startup script, which would be odd to begin with.
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.
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?
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.
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... :)
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.
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/ ?
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.
Just pushed the first 'unpolished' version to my repo. Wheels are working with that, and the install duration is better than expected.
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 :)
Just a note, rhodecode is OpenSource, sources are available here: https://code.rhodecode.com/rhodecode-enterprise-ce