Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC 6.0.2 - GIT integration: the right steps to do

Hi all.

I'm trying to set the integration between RTC 6.0.2 and GIT.
I'm following the steps in the official guide: 
  1.  in the first step, Installing and configuring Rational Team Concert and Git using an Apache HTTP server (https://www.ibm.com/support/knowledgecenter/en/SSYMRC_6.0.2/com.ibm.team.connector.cq.doc/topics/t_git_install.html), I've found the whole list of tools and SW to install.
  2. In the following step Configuring Git server-side hooks (https://www.ibm.com/support/knowledgecenter/en/SSYMRC_6.0.2/com.ibm.team.connector.cq.doc/topics/t_git_hooks.html) I've found another pre-requisite to satisfy: I have to install also NodeJS v0.12.0.
Now I don't understand if I can avoid to use NodeJS or not: sorry but the guide it's (for me) not very clear.
Then, if I need to install NodeJS v0.12.0, I have the problem that I can't find an official rpm for my RHEL 5.9 and the distro required (v0.12) encountered compiling errors (both using python 2.2 and python 3.4).
I can't use sudo yum install nodejs npm (or via apt-get) because the server is in a protected net, not open to Internet.
Please, someone can advice me how to go on?
Many thanks in advance
Alberto

0 votes


Accepted answer

Permanent link

To setup Git and RTC integration, you need to deploy Git on web server. So you can either use Apache HTTP server or NodeJS server.


To setup Git on NodeJS, you can follow the step-by-step document:
The document https://jazz.net/wiki/bin/view/Main/RTCGitNodeJSServer provides NodeJS distribution list.

If you want to deploy Git on Apache HTTP server, you do not need to install Node JS. You can refer to the article https://jazz.net/library/article/1426.

Alberto Teodoro selected this answer as the correct answer

1 vote

Comments
Please! Let me know if I've correctly understood: if Ia use NodeJS, I have not to use httpd server?
My GIT installation use httpd server: now I can switch of it and use only NodeJS?
Ciao
Alberto

I've started Nodejs: I use only Nodejs and no httpd server.

But now I've anymore the authorization that I've set (with blood and sweat!) on httpd configuration.
I can I set the authorized users on Nodejs conf? Into the conf.json? How?
Many thanks in advance.
Alberto
   


2 other answers

Permanent link

Hi Lily many tahnks for your answres.

In the official guide the steps of Apache and Nodejs (for me) seem to be mixed.
However, finally I was able to install NodeJS v0.12.0 (using Phyton 2.7).
Now I have all configured as described in the wiki page Node JS Server for RTC-Git Integration (https://jazz.net/wiki/bin/view/Main/RTCGitNodeJSServer#ScopeIn601), and, after the editing of config.jason, the in the server.log I've found "Invalid Config file at /opt/rtc-git-server-toolkit/server/config.json. Exiting application".
I'm pretty sure I've well configured config.jason: where I can find some written examples?
Many thanks in advance.
Alberto


0 votes

Comments

I have set up correctly my config.jason

Now I have the Error: listen EADDRINUSE
Probably beacause I use the port 80, already used by the httpd server for GIT.
Please! Let me know: if Ia use NodeJS, I have not to use httpd server?
Ciao
Alberto


I've resolved the Nodejs strt: I use only Nodejs and no httpd server  

If you are running Git on Node JS, you don't need to use HTTP server.
For the Node JS authentication, I suggest you use LDAP. If you use "BASIC" as the wiki https://jazz.net/wiki/bin/view/Main/RTCGitIntegrationSetupUsingNode, you need to change CLM authentication from FORM to BASIC.
Please let me know if you have further issue.

Hi Lily,

Thank you.
I've simply tried now using the authentication BASIC, because I've tried with the LDAP, but probably some attributes it's not correct in the Json sintax.
I've thougth that, using BASIC authentication, I shuold be able to push the git changes to master: instead the address for the master it's now not found.
At the same address, before, by using httpd server (on another port, now) I was able to make the push.
I've used almost the same dir three of the example, but I've the git (.git) repos nested into 2 level dirs.
Maybe the Json property value for "Git-Repositories-Root-Dir", in SO Linux, should be written in a different way: in the example I see a dir under Winodows SO. I used insted "/dati/git/": it's correct, if I've all my git Areas under this path?
Many thanks
Alberto 


Permanent link

The complete solution for my issues includes also https://jazz.net/forum/questions/235317/rtc-and-git-integration-using-nodejs-authentication-ldap

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,130
× 97

Question asked: Feb 13 '17, 1:01 p.m.

Question was seen: 4,186 times

Last updated: Feb 17 '17, 5:30 a.m.

Confirmation Cancel Confirm