Skip to content

Instantly share code, notes, and snippets.

@mohanpedala
Last active June 6, 2017 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohanpedala/f44b5dd22f64d63fbd66e61908f4cc6d to your computer and use it in GitHub Desktop.
Save mohanpedala/f44b5dd22f64d63fbd66e61908f4cc6d to your computer and use it in GitHub Desktop.
Bamboo_Installation_manual_CentOS 7

Bamboo_Installation_manual_CentOS 7

  1. Create a CentOS 7 Virtual machine on a Virtual box.
  2. Install Java jdk 1.8.0 by using the below command.
 yum -y install java-1.8.0-openjdk.x86_64 
  1. Once the java installation is completed configure the Environment Variables with the below paths
echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profile
echo 'export JRE_HOME=/usr/lib/jvm/jre' | sudo tee -a /etc/profile
source /etc/profile
  1. Verify the java version and paths.
java -version
echo $JAVA_HOME
echo $JRE_HOME
  1. Install and configure Database - Installing Mariadb
yum install -y mariadb-server
  1. Configure mariadb to start on system boot.
systemctl start mariadb
systemctl enable mariadb
  1. To harden the DB adding root password. Run the below command and follow the instruction.
mysql_secure_installation
  1. Add the below parameter in my.cnf file.
vi /etc/my.cnf
**Insert the below parameters at the end of the file**
default-storage-engine=INNODB
max_allowed_packet=256M
  1. Create a db in Mariadb and assign 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
  1. Restart DB so the configuration changes in /etc/my.cnf will take effect.
systemctl resart mariadb
  1. Create a User account for bamboo service
useradd bamboo
passwd bamboo
  1. Create a installation directory for bamboo.
mkdir -p /opt/atlassian/bamboo
  1. Assign permission to the newly created directory.
chown -R bamboo:bamboo /opt/atlassian/bamboo
chmod -R 775 /opt/atlassian/bamboo
  1. Create a home directory.
mkdir -p /var/atlassian/application-data/bamboo
  1. Set permissions to the home directory.
chown -R bamboo:bamboo /var/atlassian/application-data/bamboo
chmod -R 775 /var/atlassian/application-data/bamboo
  1. Download bamboo and extract it using the below commands in temp folder.
cd /
cd /tmp
wget https://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-5.14.3.1.tar.gz
tar xzf atlassian-bamboo-5.14.3.1.tar.gz
  1. Move the extracted file atlassian-bamboo-5.14.3.3 to /atlassian/bamboo folder.
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/
  1. Set Bamboo home directory in properties file
vi /opt/atlassian/bamboo/current/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties
bamboo.home=/var/atlassian/application-data/bamboo
  1. Start Bamboo as the bamboo user
su - bamboo
cd /opt/atlassian/bamboo/current/bin
./start-bamboo.sh
  1. Open the firewall for port number 8085
firewall-cmd --permanent --add-port=8085/tcp
firewall-cmd --reload
  1. You can now access bamboo in the web browser.
http://ipaddress:8085
  1. Before you shutdown the machine you can stop bamboo by using
/opt/atlassian/bamboo/current/bin
./stop-bamboo.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment