Table of Contents |
---|
Info |
---|
본 설치 가이드는 Bitbucket 7.6.0 기준으로 작성 되었습니다. |
사전 준비
1. NFS 설정
NFS 설정 참조
2. Elasticsearch 설정
3. Apache Load Balancer 설정
...
Application Title, Base URL, License key 입력
Bitbucket Internal Admin 계정 생성
Internal Admin 계정이므로 정보 입력 후 “Go to Bitbucket” 버튼 클릭
공유폴더 설정
Bitbucket 인스턴스 종료
Code Block language bash $ cd /opt/datacenter/atlassian/bitbucket/bin/ $ ./stop-bitbucket.sh
Home 디렉토리의 shared 폴더를 NFS 로 복사
Code Block language bash $ cd /home/datacenter/atlassian/bitbucket/ $ mv shared /home/share/atlassian/bitbucket/ $ ln -sf /home/share/atlassian/bitbucket/shared shared
Node 설정
Node 이름 설정
Code Block language bash $ cd /opt/datacenter/atlassian/bitbucket/bin/ $ vi _start-webapp.sh --------------------------- ... JVM_SUPPORT_RECOMMENDED_ARGS="-Dcluster.node.name=node1" ... ---------------------------
bitbucket.properties 파일에 Node 관련 설정 추가
Code Block language bash $ cd /home/share/atlassian/bitbucket/shared $ vi bitbucket.properties -------------------------- # Use multicast to discover cluster nodes (recommended). hazelcast.network.multicast=false # If your network does not support multicast, you may uncomment the following lines and substitute # the IP addresses of some or all of your cluster nodes. (Not all of the cluster nodes have to be # listed here but at least one of them has to be active when a new node joins.) hazelcast.network.tcpip=true hazelcast.port=5705 hazelcast.network.tcpip.members=***.***.48124.22047:57035705,***.***.124.2369:57015705 # The following should uniquely identify your cluster on the LAN. hazelcast.group.name=Twoseed-cluster hazelcast.group.password=Twoseed-cluster hazelcast.node.authentication.enabled=false --------------------------
...
Remote Elasticsearch 설정
Code Block language bash $ cd /home/share/atlassian/bitbucket/shared $ vi bitbucket.properties -------------------------- plugin.search.elasticsearch.baseurl=http://***.***.48.220:69919200/ ## Elasticsearch URL plugin.search.elasticsearch.username=twoseed ## buckler.yml에 지정한 username plugin.search.elasticsearch.password=admin ## buckler.yml에 지정한 password --------------------------
Install, Home directory 백업 및 node2에 복사
Code Block $ cd /opt/datacenter/atlassian $ tar cvfz bitbucket_install.tgz bitbucket/ $ cd /home/datacenter/atlassian $ tar cvfz bitbucket_home.tgz bitbucket/
Bitbucket 인스턴스 시작
Code Block $ cd /opt/datacenter/atlassian/bitbucket/bin/ $ ./start-bitbucket.sh --no-search ## 번들 Elasticsearch가 실행되지 않도록 옵션 추가
...