Difference between revisions of "CentOS 7.x Install Bamboo"

From Notes_Wiki
m
m
 
Line 1: Line 1:
<yambe:breadcrumb self="CentOS 7.x Install Bamboo">CentOS 7.x Atlassian products|CentOS 7.x Atlassian products</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Atlassian products|Atlassian products]] > [[CentOS 7.x Install Bamboo]]
=CentOS 7.x Install Bamboo=


To install bamboo on CentOS 7.x use following steps:
To install bamboo on CentOS 7.x use following steps:
Line 114: Line 113:
Steps contributed by Pavan Ponamala
Steps contributed by Pavan Ponamala


<yambe:breadcrumb self="CentOS 7.x Install Bamboo">CentOS 7.x Atlassian products|CentOS 7.x Atlassian products</yambe:breadcrumb>
 
 
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Atlassian products|Atlassian products]] > [[CentOS 7.x Install Bamboo]]

Latest revision as of 09:31, 25 August 2022

Home > CentOS > CentOS 7.x > Web Based Tools > Atlassian products > CentOS 7.x Install Bamboo

To install bamboo on CentOS 7.x use following steps:

  1. 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.
  2. Disable SELinux by editing '/etc/selinux/config'
    SELINUX=disabled
  3. Install & Configure database
    1. Install mariadb
      yum install -y mariadb-server
    2. Configure mariadb to start on system boot and also start it for current run:
      systemctl start mariadb
      systemctl enable mariadb
    3. Harden mariadb installation and configure mariadb root password:
      mysql_secure_installation
    4. Add below parameters in '/etc/my.cnf' file
      default-storage-engine=INNODB
      max_allowed_packet=256M
    5. 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
    6. Restart database so that configuration changes in /etc/my.cnf take effect
      systemctl resart mariadb
  4. Copy MySQL JDBC driver to application server
    1. 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
    2. unzip mysql-connector-java-5.x.x-bin.jar
    3. 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/
  5. Download oracle JDK from oracle website http://www.oracle.com/technetwork/java/javase/downloads/index.html
  6. Install JDK
    yum localinstall jdk-8u111-linux-x64.rpm
  7. Create user account for Bamboo service
    useradd bamboo
  8. Create installation directory
    mkdir -p /opt/atlassian/bamboo
  9. Set permissions
    chown -R bamboo:bamboo /opt/atlassian/bamboo
    chmod -R 775 /opt/atlassian/bamboo
  10. Create home directory
    mkdir -p /var/atlassian/application-data/bamboo
  11. Set per missions
    chown -R bamboo:bamboo /var/atlassian/application-data/bamboo
    chmod -R 775 /var/atlassian/application-data/bamboo
  12. 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
  13. 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/
  14. 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
  15. Start Bamboo as bamboo user
    su - bamboo
    cd /opt/atlassian/bamboo/current/bin
    ./start-bamboo.sh
  16. Before machine shutdown bamboo can be stopped using:
    /opt/atlassian/bamboo/current/bin
    ./stop-bamboo.sh
  17. After installation Bamboo can be accessed at URL http://<ipaddress>:8085 or http://<fqdn>:8085
  18. 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:
    1. Create application authentication username and password in Jira as admin. For this go to "Jira -> Configure" and then go to "User management -> Jira user server". Make sure the IP address of bamboo server is correctly mentioned for authentication to work.
    2. 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:

Steps contributed by Pavan Ponamala


Home > CentOS > CentOS 7.x > Web Based Tools > Atlassian products > CentOS 7.x Install Bamboo