Project

General

Profile

Actions

Bug #6663

closed

[Documentation] Document git repository setup

Added by Joshua Randall almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Documentation
Target version:
Story points:
1.0

Description

The install docs don't say much about setting up git repositories. They should explain:

  • Git repositories must live on the same host as the API server. The user account running the API server must have read access to all those repositories.
  • In production, we use gitolite to create repositories and manage their permissions via SSH. We use the script at source:docker/api/update-gitolite.rb to do that. Link to the gitolite installation documentation for details.
  • If you don't want to use Gitolite, you don't have to do that. You don't even have to serve repositories via SSH at all. But you'll at least need to write a script that polls Arvados SSH repositories and manages real repositories on disk accordingly. We also recommend that you create a git user that owns all repositories, just to simplify permissions.
  • Whatever script you choose, set up a cron job to run it regularly. We run it every 2 minutes. Include an example entry that shows update-gitolite.rb being run every two minutes. You can choose any interval, but the more often you run it, the better repositories on disk will match Arvados' records.

All this should be added in a new section of the API server installation documentation. Once that's done, go through the install-git-server page and make sure instructions there are consistent with these steps, making any updates necessary. At the very least, after the run script that uses sudo -u git, note that this follows our recommendation to set up a dedicated git user to own the repositories. The service should run as whatever user owns the repositories on disk.


Subtasks 4 (0 open4 closed)

Task #6728: Document how to install a full arv-git-httpd repo hosting system (that works with or without gitolite)ResolvedTom Clegg07/17/2015Actions
Task #6726: Put update-gitolite script in a more appropriate placeResolvedTom Clegg07/17/2015Actions
Task #6725: Review 6663-git-serverResolvedBrett Smith07/17/2015Actions
Task #6785: Review 6663-bugfixesResolvedPeter Amstutz07/17/2015Actions

Related issues

Related to Arvados - Feature #6769: arv-git-httpd manages repository creation instead of gitolite.ClosedActions
Related to Arvados - Feature #4253: [API] Users can create their own arvados-hosted git repositoriesResolvedBrett Smith10/17/2014Actions
Actions

Also available in: Atom PDF