"Gerrit"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글
13번째 줄: 13번째 줄:
 
*<span style="line-height: 1.6;">WAS</span><span style="line-height: 1.6;">&nbsp;: </span>[[Jetty|Jetty]]<span style="line-height: 1.6;">, </span>[[Tomcat|Tomcat]]
 
*<span style="line-height: 1.6;">WAS</span><span style="line-height: 1.6;">&nbsp;: </span>[[Jetty|Jetty]]<span style="line-height: 1.6;">, </span>[[Tomcat|Tomcat]]
 
*Database&nbsp;:&nbsp;[http://www.jopenbusiness.com/mediawiki/H2 H2],&nbsp;[http://www.jopenbusiness.com/mediawiki/MySQL MySQL],&nbsp;[http://www.jopenbusiness.com/mediawiki/PostgreSQL PostgreSQL]
 
*Database&nbsp;:&nbsp;[http://www.jopenbusiness.com/mediawiki/H2 H2],&nbsp;[http://www.jopenbusiness.com/mediawiki/MySQL MySQL],&nbsp;[http://www.jopenbusiness.com/mediawiki/PostgreSQL PostgreSQL]
*Others : JDK, OpenSSH, git
+
*Others&nbsp;: JDK, OpenSSH, git
 +
 
 +
<span style="color:#008000;">'''<span style="font-size:larger;">Apache HTTP Server 설치</span>'''</span>
  
 
yum install httpd httpd-tools openssl mod_ssl
 
yum install httpd httpd-tools openssl mod_ssl
24번째 줄: 26번째 줄:
  
 
&nbsp; &nbsp; ## Disable Banner<br/>&nbsp; &nbsp; ServerTokens Prod
 
&nbsp; &nbsp; ## Disable Banner<br/>&nbsp; &nbsp; ServerTokens Prod
 +
 +
vim /etc/httpd/conf.d/vhosts.conf
 +
 +
 +
 +
&nbsp; &nbsp; # Load my vhosts<br/>&nbsp; &nbsp; Include vhosts.d/*.conf
 +
 +
 +
 +
mkdir /etc/httpd/vhosts.d
 +
 +
vim /etc/httpd/vhosts.d/gerrit.conf
 +
 +
&nbsp; &lt;VirtualHost *:80&gt;<br/>&nbsp; &nbsp; &nbsp; ServerName gerrit.osscloud.biz
 +
 +
&nbsp; &nbsp; &nbsp; ProxyRequests Off<br/>&nbsp; &nbsp; &nbsp; ProxyVia Off<br/>&nbsp; &nbsp; &nbsp; ProxyPreserveHost On
 +
 +
&nbsp; &nbsp; &nbsp; &lt;Proxy *&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Order deny,allow<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Allow from all<br/>&nbsp; &nbsp; &nbsp; &lt;/Proxy&gt;
 +
 +
&nbsp; &nbsp; &nbsp; &lt;Location /login/&gt;<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AuthType Basic<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AuthName "Gerrit Code Review"<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Require valid-user<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AuthUserFile /etc/httpd/gerrit.htpasswd<br/>&nbsp; &nbsp; &nbsp; &lt;/Location&gt;
 +
 +
&nbsp; &nbsp; &nbsp; ProxyPass / http://127.0.0.1:8080/<br/>&nbsp; &lt;/VirtualHost&gt;
 +
 +
htpasswd -c /etc/httpd/gerrit.htpasswd admin
 +
 +
service httpd restart
 +
  
  
 +
<span style="color:#008000;">'''<span style="font-size:larger;">Gerrit 설치</span>'''</span>
  
 
wget&nbsp;[https://www.gerritcodereview.com/download/gerrit-2.11.2.war https://www.gerritcodereview.com/download/gerrit-2.11.2.war]
 
wget&nbsp;[https://www.gerritcodereview.com/download/gerrit-2.11.2.war https://www.gerritcodereview.com/download/gerrit-2.11.2.war]

2015년 7월 28일 (화) 18:17 판

Git을 사용하는, 구글의 안드로이드 프로젝트에서 사용하고 있는 코드리뷰 소프트웨어인 Gerrit를 정리 합니다.

Gerrit 개요

Gerrit 설치

Apache HTTP Server 설치

yum install httpd httpd-tools openssl mod_ssl

vim /etc/httpd/conf.d/options.conf

    TraceEnable off

    ## Disable Signature
    ServerSignature Off

    ## Disable Banner
    ServerTokens Prod

vim /etc/httpd/conf.d/vhosts.conf


    # Load my vhosts
    Include vhosts.d/*.conf


mkdir /etc/httpd/vhosts.d

vim /etc/httpd/vhosts.d/gerrit.conf

  <VirtualHost *:80>
      ServerName gerrit.osscloud.biz

      ProxyRequests Off
      ProxyVia Off
      ProxyPreserveHost On

      <Proxy *>
                  Order deny,allow
                  Allow from all
      </Proxy>

      <Location /login/>
                  AuthType Basic
                  AuthName "Gerrit Code Review"
                  Require valid-user
                  AuthUserFile /etc/httpd/gerrit.htpasswd
      </Location>

      ProxyPass / http://127.0.0.1:8080/
  </VirtualHost>

htpasswd -c /etc/httpd/gerrit.htpasswd admin

service httpd restart


Gerrit 설치

wget https://www.gerritcodereview.com/download/gerrit-2.11.2.war

java -jar ~/install/*.war init -d /cloudnas/www/gerrit

참고 문헌