Documentation wiki

Main Page

From HPCforge Wiki

Revision as of 15:03, 27 October 2011 by Mconsoli (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


HPCForge basic documentation

Use of SCMs

Using HPCforge SCMs (Subversion, git ...) requieres the use of a public key cryptography, based on a public and a private key to encrypt and decrypt data. See this document for a step by step description.

How to setup automatic svn update notifications

Setting on Mailman

To get automatic notifications you have to disable moderation on the project list:

  • Login to the web interface
    (you must have admin rights on your project)
  • Select the project, select the "Lists" tab, click on the "Admin" link
  • Click on "Administrate" or choose to get a new password (reset admin pass)
    Then click "Administrate"
  • Login into the mailman system
  • General Options
    • Privacy options...
      • Sender filters
        If you do not want your list's subscribers to be moderated,
        set "By default, should new list member postings be moderated?" to "no"
        --> List of non-member addresses whose postings should be automatically accepted.
        --> Add ""
        --> Click on submit to save your changes

Setting on the scm

The following commands will create a post-commit hook for your project:

ssh <username>
cd /var/lib/gforge/chroot/scmrepos/svn/<myproject>/
cp /usr/share/subversion/hook-scripts/mailer/ ./hooks/
cp /usr/share/subversion/hook-scripts/mailer/mailer.conf .
cp ./hooks/post-commit.tmpl ./hooks/post-commit
chmod g+w ./mailer.conf
chmod a+x ./hooks/post-commit

Edit ./hooks/post-commit and add the following:

from_addr =
to_addr = <myproject>
reply_to = <myproject>

Test the svn update notification

On your local machine checkout the repository, modify and then checkin:

mkdir tmphpcforge/
cd tmphpcforge/
svn checkout
echo test01 > <myproject>/trunk/test01.txt 
svn add <myproject>/trunk/test01.txt
svn commit

You should then receive an email notification.