Gerrit
Git을 사용하는, 구글의 안드로이드 프로젝트에서 사용하고 있는 코드리뷰 소프트웨어인 Gerrit를 정리 합니다.
- 홈페이지 : https://www.gerritcodereview.com/
- 다운로드 : https://gerrit-releases.storage.googleapis.com/index.html
- 라이선스 :
- 플랫폼 : Java
Gerrit 개요
Gerrit 설치
- 인증 방식 : Open ID, HTTP, LDAP
- WAS : Jetty, Tomcat
- Database : H2, MySQL, PostgreSQL
- Others : JDK, OpenSSH, git
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
참고 문헌
- Git
- GitWeb
- Jenkins
- https://www.mediawiki.org/wiki/Gerrit/Tutorial
- Gerrit 코드리뷰(Code Review) 설치 가이드 1부 - 준비
- https://www.rosehosting.com/blog/how-to-install-gerrit2-on-a-centos-7-linux-vps/
- Gerrit 코드리뷰(Code Review) 설치 가이드 2부 - Http 인증 설정
- Gerrit 코드리뷰(Code Review) 설치 가이드 3부 - Gerrit 설치
- Gerrit 코드리뷰(Code Review) 설치 가이드 4부 - Gerrit 설정