cydra icon indicating copy to clipboard operation
cydra copied to clipboard

how to use it?

Open Readon opened this issue 11 years ago • 9 comments

i have downloaded the source code from github. but have no idea how to try it? it there any tutorial?

Readon avatar Nov 02 '13 10:11 Readon

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.

mensi avatar Nov 02 '13 14:11 mensi

then, may i ask some questions?

  1. does cydra use /etc/cydra.conf as its default setup?
  2. can I manage the repositories with cydra's standalone web server or apache or as plugin of trac?
  3. if it runs standalone web server how can i start it?
  4. does the git repository directory needs write access right?

Thank you, perhaps I can write a tutorial after i finished.

Readon avatar Nov 02 '13 15:11 Readon

  1. it uses cydra.conf in the same directory, then falls back to /etc/cydra.conf
  2. managing is done with cydra.web, you can either use it by running cydra-httpd or creating a suitable mod_wsgi/uwsgi config
  3. 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-*)
  4. yes, the user cydra is running under needs write access. For git you can use cydra together with gitserverglue for the best experience ;)

mensi avatar Nov 02 '13 17:11 mensi

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

mensi avatar Nov 03 '13 10:11 mensi

It looks like gitserverglue is working, but git http viewer seems no lucky.

Readon avatar Nov 04 '13 01:11 Readon

For the httpviewer, right now, you can only use piggy (see my github account, the piggy from pypi is something different)

mensi avatar Nov 04 '13 20:11 mensi

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?

theduke avatar Feb 26 '14 15:02 theduke

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)?

theduke avatar Feb 26 '14 16:02 theduke

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.

mensi avatar Feb 26 '14 16:02 mensi