cydra
cydra copied to clipboard
how to use it?
i have downloaded the source code from github. but have no idea how to try it? it there any tutorial?
Sadly this is something I haven't gotten around to do yet. There is a slightly outdated draft in the docs, you could try and see if that helps.
then, may i ask some questions?
- does cydra use /etc/cydra.conf as its default setup?
- can I manage the repositories with cydra's standalone web server or apache or as plugin of trac?
- if it runs standalone web server how can i start it?
- does the git repository directory needs write access right?
Thank you, perhaps I can write a tutorial after i finished.
- it uses cydra.conf in the same directory, then falls back to /etc/cydra.conf
- managing is done with cydra.web, you can either use it by running cydra-httpd or creating a suitable mod_wsgi/uwsgi config
- there are standalone development webservers for all components, if you do a setup.py install they should by on your path (and are called cydra-*)
- yes, the user cydra is running under needs write access. For git you can use cydra together with gitserverglue for the best experience ;)
As an example for a config, this is what I use for testing:
components:
cydra.permission.InternalPermissionProvider: true
cydra.permission.StaticGlobalPermissionProvider: true
cydra.permission.htpasswd.HtpasswdUsers:
file: users.htpasswd
cydra.datasource.file.FileDataSource:
base: projects
cydra.repository.git.GitRepositories:
base: git
cydraplugins.gitserverglue.GitServerGlue:
ssh_url_base: ssh://localhost:2222
http_url_base: http://localhost:8080
It expects a projects and git directory in the working directory as well as a users.htpasswd file with users & passwords
It looks like gitserverglue is working, but git http viewer seems no lucky.
For the httpviewer, right now, you can only use piggy (see my github account, the piggy from pypi is something different)
I got the http server running after fiddling with the code, but if I log in i can not create new projects or do anything.
I guess that I need to configure the permissions for the user I added in the htpasswd file? How do I set that user to admin?
OK I got that part working by adding the projects: create permission.
So I could create a project and a git repo. But how do I add a key for git:// access to a user? The settings page is blank for me.
Also, how do I actually run the git daemon (gitserverglue)?
In order to be able to use public keys, you need to enable a datasource that supports the IPubkeyStore interface. Right now, only MongoDataSource implements it.
As for running git serverglue, if you install the cydra gitserverglue plugin, setup.py will install a commandline script "cydra-gitserverglue" that you can use.