RTC and Git Integration setup
Do you have any proposal of the port number, the document root folder I should use? Could anyone provide me a running apache config example?
Many thanks in advance
Cheers
Christine
Accepted answer
<VirtualHost *:8113> DocumentRoot /gitrepos/ SetEnv GIT_PROJECT_ROOT /gitrepos/ SetEnv GIT_HTTP_EXPORT_ALL 1 SetEnv REMOTE_USER=$REDIRECT_REMOTE_USER # SSLEngine on # SSLCertificateFile /certs/newCA.crt # SSLCertificateKeyFile /keys/newCA.key ScriptAliasMatch \ "(?x)^/git/(.*/(HEAD | \ info/refs | \ com\.ibm\.team\.git\.service\.GitResourceService/.* | \ objects/(info/[^/]+ | \ [0-9a-f]{2}/[0-9a-f]{38} | \ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \ git-(upload|receive)-pack))$" \ /rtc-git-hooks/rtc-git-http-interceptor/$1 # Change the path above # ScriptAlias / /var/www/git/gitweb.cgi/ <Directory "/usr/libexec/git-core/"> Options +ExecCGI Allow from all </Directory> <Directory "/rtc-git-hooks/"> Options +ExecCGI Allow from all </Directory> <Directory "/gitrepos/"> Dav on Order allow,deny Allow from all </Directory> <LocationMatch "^/git/.*"> Dav on AuthType Basic AuthBasicProvider ldap AuthName "Git" AuthLDAPURL "ldap://localhost:389/ou=people,dc=test,dc=lan?uid" Require valid-user Order allow,deny Allow from all </LocationMatch> #ProxyPass /ccmgit http://localhost:8080/ccmgit #ProxyPassReverse /ccmgit http://localhost:8080/ccmgit </VirtualHost>
Comments
For some reason the strings '/' (forward slash) is getting replaced with '="' in the example above. So, you may have to manually search / replace this.
Many thanks for your examples. Now I have configured the environment as described, set up my "own" git server and I have access from outside to my git repositories there. But registering a Git repository in RTC ccm shows me a communication error: Invalid remote repository; reason = "Error communicating with Git server". Do you have a hint for the reason why. Thanks in advance
That is probably because you haven't filled the credentials to make requests to Git server. Fill them out in RTC repository registration page in the Settings tab.
Hello Christine,
the thing with "Authorize Git Requests" was the following:
if I authorize Git requests as admin, I got the error: HTTP Error 500: Internal Server Error but when I do that with a normal user account the rtc hooks ValidatePush.py & AssociateWorkitem.py will be executed without error but still no Links are created on the RTC side.
the reason is probabely the fact that some git2.dll ist needed
:https://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.2/com.ibm.team.connector.cq.doc/topics/t_apache_http_server.html
-On Windows systems, edit rtc-git-interceptor.pl to configure the following variable $LIBGIT2_PATH ; The location where the libgit2 module is installed. For example: $LIBGIT2_PATH ="C:/libgit2/git2.dll".
my problem is that I don't find that dll as binary but only as sources, which should be compiled and to generate such dll.
my question is: is that the normal way to have some dll's respct. do you know where to get it?
thx
Adel
Regarding the libgit2 library, I also wasn't able to find the pre-built binary for 0.21.0.