Git

From SME Server
Revision as of 01:11, 22 May 2012 by Thf (talk | contribs)
Jump to navigation Jump to search
PythonIcon.png Skill level: Developer
Risk of inconsistencies with Koozali SME Server methodology, upgrades & functionality is high. One must be knowledgeable about how changes impact their Koozali SME Server. Significant risk of irreversible harm.


Developer / Maintainer

Marco Hess

Description

 

This is a place holder for a Git integration contrib for SME server that is currently under development. It integrates git with git-http-backend and gitweb into SME8.

The current feature list include:

  • Create & manage centralised git repositories through the SME server-manager panel.
  • Access rights based on SME server users and groups.
  • Per repository settings for pull and push access control (including support for setting anonymous access).
  • Per repository network access setting for either local only or internet.
  • All repositories accessed over HTTPS for easy remote access through firewalls.
  • Separate name space for Git repositories using git subdomain (i.e. independent of ibays and other resources on the server)
  • Email notification of push operations to all users that have either pull or push access to the repository
  • Web viewing of repositories through gitweb
  • Gravatars support in gitweb
  • Automatic markdown of README.md into README.html and shown in gitweb

Installation

For the smeserver-git contrib is currently no RPM available for this package but a very alpha (but functional) version is available from my Git repository and can be anonymously cloned. Use the following guidelines for a manual install:

Dag Repositpory

The Git packages comes from the Dag repository:

The following command will configure the Dag repository on SME Server. EDIT NOT COMPLETE!


To create an entry in the database for the epel repository we open put the following commands in a terminal window or in a shell window:

/sbin/e-smith/db yum_repositories set epel repository \

Name 'SME Server - epel' \
BaseURL 'http://<http://download.fedoraproject.org/pub/epel/7/$basearch' \
EnableGroups yes \
GPGCheck yes \
Visible no \
status disabled

To enable the changes:

    signal-event yum-modify

Just to be sure, give yum a fresh start:

    yum clean all

After adding it to the database we have to update the changes to the configuration file:

signal-event yum-modify

Make sure you use the settings for SME8 (check the discussion page)

Install Git RPM's

yum --enablerepo=dag install git gitweb

Clone the smeserver-git repository

Set your git to ignore self signed SSL certificates with:

git config --global http.sslVerify false

Now clone the repository:

git clone https://git.through-ip.com/smeserver-git.git

Add a couple of config variables:

config set git service status enabled domain git.yourserver.com allow_access_from local

Enter the package:

cd smeserver-git
chmod +x install-smeserver-git.sh
./install-smeserver-git


The repository contains an install script that can be used to install the required files but your mileage may vary.

Removal

The repository contains an uninstall script:

./uninstall-smeserver-git.sh

Feedback

I welcome any feedback on this contrib for bugs, features or assistance (e.g. turning it into an RPM). Email me at the address found at the top of this page.

Additional information

More information about Git can be found on http://git-scm.com/.