This project is a proof of concept and intellectual excercise to demonstrate the use of SSH daemons and beanstalkd to maintain git repositories mapped to project module projects.
To run this Daemon you must have the python 2.6 or higher and have beanstalkc installed.
Beanstalk can easily be built from source. Once you have beanstalkd, start it with the following command: [path to your compiled beantaslk]/beanstalkd -l 127.0.0.1 -p 11300
All install instructions are Ubuntu / Debian focused.
- Ensure that you have easy_install installed (on debian/ubuntu
apt-get install python-dev python-setuptools
). - Install beanstalkc's YAML dependency:
easy_install PyYAML
. - Run
git clone https://github.com/earl/beanstalkc.git
- Move into the beanstalkc directory
cd beanstalkc
- Run the installer
python setup.py install
- Copy and configure the configuration file
cp drupaldaemons.cnf.default drupaldaemons.cnf
andnano drupaldaemons.cnf
Configure the daemon in the drupaldaemons.cnf to properly point to a local directory on your system and at your drupal site where Project Git Auth is properly installed.
Once you have beanstalk started run ./beanstalkdRepositoryManager.py
from inside this repository.
Install and configure the Project Git Auth module
All install instructions are Ubuntu / Debian focused.
- Ensure that you have easy_install installed (on debian/ubuntu
apt-get install python-dev python-setuptools
). - On Ubuntu,
apt-get install python-twisted
- Install zope
- Download Twisted 10.1.0
wget http://tmrc.mit.edu/mirror/twisted/Twisted/10.1/Twisted-10.1.0.tar.bz2
- Untar Twisted
tar -xvf Twisted-10.1.0.tar.bz2
- Move into the Twisted directory
cd Twisted-10.1.0
- Run the Twisted installer
pyton setup.py install
- Copy and configure the configuration file
cp drupaldaemons.cnf.default drupaldaemons.cnf
Configure the daemon in the drupaldaemons.cnf to properly point to a local directory on your system and at your drupal site where Project Git Auth is properly installed.
From inside this repository, Start the daemon by typing ./drupalGitSSHDaemon.py