Difference between revisions of "CentOS 7.x Install Bamboo"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Atlassian_products_on_CentOS_7.x|Atlassian products on CentOS 7.x</yambe:breadcrumb> =Install Bamboo on CentOS 7.x= To install bamboo on CentOS 7.x use foll...") |
m (Saurabh moved page Install Bamboo on CentOS 7.x to CentOS 7.x Install Bamboo) |
(No difference)
|
Revision as of 16:12, 23 January 2017
<yambe:breadcrumb>Atlassian_products_on_CentOS_7.x|Atlassian products on CentOS 7.x</yambe:breadcrumb>
Install Bamboo on CentOS 7.x
To install bamboo on CentOS 7.x use following steps:
- Add resolution of FQDN in /etc/hosts file to machines appropriate IP address. This is required even after DNS is setup to resolve IP via FQDN.
- Disable SELinux by editing '/etc/selinux/config'
- SELINUX=disabled
- Install & Configure database
- Install mariadb
- yum install -y mariadb-server
- Configure mariadb to start on system boot and also start it for current run:
- systemctl start mariadb
- systemctl enable mariadb
- Harden mariadb installation and configure mariadb root password:
- mysql_secure_installation
- Add below parameters in '/etc/my.cnf' file
- default-storage-engine=INNODB
- max_allowed_packet=256M
- Create database and give permissions
- mysql -u root -p
- CREATE DATABASE bamboo CHARACTER SET utf8 COLLATE utf8_bin;
- grant all privileges on bamboo.* to 'bamboo'@'%' identified by '<secret>';
- flush privileges;
- exit
- Restart database so that configuration changes in /etc/my.cnf take effect
- systemctl resart mariadb
- Install mariadb
- Copy MySQL JDBC driver to application server
- Download JDBC driver form http://dev.mysql.com/downloads/connector/j/
- Example driver URL is http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.zip
- unzip mysql-connector-java-5.x.x-bin.jar
- Copy or move the MySQL JDBC driver jar to the <Bitbucket installation directory>/lib/ directory
- mv mysql-connector-java-5.1.40-bin.jar /opt/atlassian/bamboo/current/lib/
- Download JDBC driver form http://dev.mysql.com/downloads/connector/j/
- Download oracle JDK from oracle website http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Install JDK
- yum localinstall jdk-8u111-linux-x64.rpm
- Create user account for Bamboo service
- useradd bamboo
- Create installation directory
- mkdir -p /opt/atlassian/bamboo
- Set permissions
- chown -R bamboo:bamboo /opt/atlassian/bamboo
- chmod -R 775 /opt/atlassian/bamboo
- Create home directory
- mkdir -p /var/atlassian/application-data/bamboo
- Set per missions
- chown -R bamboo:bamboo /var/atlassian/application-data/bamboo
- chmod -R 775 /var/atlassian/application-data/bamboo
- Download bamboo from https://www.atlassian.com/software/bamboo/download#! Example URL is https://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-5.14.3.1.tar.gz
- Extract bamboo at installation directory
- tar xzf atlassian-bamboo-5.14.3.1.tar.gz
- mv atlassian-bamboo-5.14.3.1 /opt/atlassian/bamboo/
- cd /opt/atlassian/bamboo
- ln -s atlassian-bamboo-5.14.3.1 current
- chown -R bamboo:bamboo /opt/atlassian/bamboo/
- Set Bamboo home directory in properties file '/opt/atlassian/bamboo/current/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties'
- bamboo.home=/var/atlassian/application-data/bamboo
- Start Bamboo as bamboo user
- su - bamboo
- cd /opt/atlassian/bamboo/current/bin
- ./start-bamboo.sh
- Before machine shutdown bamboo can be stopped using:
- /opt/atlassian/bamboo/current/bin
- ./stop-bamboo.sh
- After installation Bamboo can be accessed at URL http://<ipaddress>:8085 or http://<fqdn>:8085
- Bamboo can be integrated with Jira for authentication. Try adding application link between Bamboo and Jira. If that does not sets up authentication automatically then:
- Create application authentication username and password in Jira as admin
- Configure Jira user directory in Bamboo which connects to Jira user database using created credentials
- Note that manual resync is required to get users created in Jira a few moments ago. The same users need to be added to application for allowing user to login.
Refer:
- https://confluence.atlassian.com/bamboo/running-bamboo-as-a-linux-service-416056046.html
- https://confluence.atlassian.com/bamboo/installing-bamboo-on-linux-289276792.html
Steps contributed by Pavan Ponamala
<yambe:breadcrumb>Atlassian_products_on_CentOS_7.x|Atlassian products on CentOS 7.x</yambe:breadcrumb>