Running Bamboo on CentOS 6.5

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

  • VirtualBox

  • iptables

  • httpd

  • hosts

  • vhosts

  • Bamboo

Requirements

Solution

VirtualBox

Since you have downloaded and installed VirtualBox, it is time to download and install the image we are going to use in this tutorial.

In order to do it so, download and extract CentOS 6.5 VM. You should find two files (.vdi and .vbox). Please, double-click on the .vbox file and your CentOS image will be added to the VirtualBox.

Lets configure our CentOS image by selecting it and clicking on Settings

Under General >> Description, please add the following:

1 2 username: root password: adminuser

Under System >> Motherboard, please:

  • increase the Base Memory to, at least, 2048Mb

  • in Boot Order, please select only Hard Disk

  • in Extended Features, please select Enable I/O APIC

Under System >> Processor, please:

  • increase the Processor(s) to, at least, 2

Under Display >> Video, please:

  • increase Video Memory to, at least, 32Mb

Under Audio, please:

  • uncheck Enable Audio

Under Network >> Adapter 1, please:

  • check Enable Network Adapter

  • select Bridged Adapter as Attached to

    Please, notice the network configuration selected might change depending on your company's network settings and security.

Now, we are able to run our CentOS VM by selecting it and clicking on Start.

Once you do, a new window will open and CentOS will start to load.

Please, wait until the login screen load up.

1 2 username: root password: adminuser

Lets make sure you have connectivity between your computer and the CentOS VM you are running.

1 2 3 4 5 6 7 8 9 10 11 12 # the following will display information about your CentOS network $ ifconfig   # please, attempt to ping your personal computer from within CentOS VM $ ping <ip-to-personal-computer>   # please, run the command above from your personal computer in attempt to reach your CentOS VM $ ping <ip-to-centos-vm>   # connect to your CentOS VM through SSH $ ssh root@<ip-to-centos-vm> password: adminuser

If you are able to communicate between machines, lets proceed. Otherwise, stop your CentOS VM and update the Network settings.

iptables

Now, that you are logged in your CentOS VM lets enable Bamboo's default port in the iptables

1 2 3 4 5 6 7 8 9 10 11 # view iptables $ iptables -L -n # edit iptables $ vi /etc/sysconfig/iptables # add the following to allow Bamboo to run on port 8085 -A INPUT -m state --state NEW -m tcp -p tcp --dport 8085 -j ACCEPT # restart service $ service iptables restart

httpd

Lets install httpd by running the following command:

1 2 # install httpd $ yum -y install httpd

Lets configure our httpd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 # edit httpd configuration file $ vi /etc/httpd/conf/httpd.conf # :44 - change from OS ServerTokens Prod # :76 - change to ON KeepAlive On # :338 change from None AllowOverride All # :402 add file name that it can access only with directory's name DirectoryIndex index.html index.htm # :536 change from On ServerSignature Off # :759 comment out #AddDefaultCharset UTF-8

Lets restart httpd service

1 2 3 $ /etc/rc.d/init.d/httpd restart $ chkconfig httpd on

Lets test if httpd is accessible from your personal computer. In order to do it so, lets create a greeting HTML page in CentOS and try to view it in your personal computer web browser

1 2 # create index.html vi /var/www/html/index.html
1 2 3 4 5 6 7 8 9 10 <!DOCTYPE html> <html> <head> <title>Greeting</title> </head> <body> <p>Hello, World!</p> </body> </html>

Please, go to your web browser and hit the <ip-to-centos.vm>

hosts

Lets add a DNS to the CentOS VM as it is going to be used to

1 2 3 4 # edit hosts $ vi /etc/hosts # add ServerName 127.0.0.1 bamboo.centos.vm

Lets enable our CentOS network to be accessible externally by running the following:

1 2 3 4 5 6 7 8 9 10 11 12 # get a list o Selinux starting with httpd $ sestatus -b | grep httpd   # if you can see httpd_can_network_connect set to off, please run $ togglesebool httpd_can_network_connect   # alternatively, you can $ vi /etc/sysconfig/selinux   # change setenforce value setenforce permissive

vhosts

Lets create our Virtual Host

1 2 3 4 5 6 # edit httpd configuration file $ vi /etc/httpd/conf/httpd.conf # add the following at the end of httpd configuration file Include conf/vhosts/*.conf
1 2 # create vhosts directory. $ mkdir /etc/httpd/conf/vhosts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 # create a VirtualHost for Bamboo $ vi /etc/httpd/conf/vhosts/bamboo.conf <VirtualHost *:80> ServerName bamboo.centos.vm ProxyRequests Off ProxyPreserveHost On <Proxy *> Order Deny,Allow Allow from all </Proxy> ProxyPass / http://localhost:8085/ ProxyPassReverse / http://localhost:8085/ <Location /bamboo> Order Allow,Deny Allow from all </Location> </VirtualHost>
1 2 # restart httpd to get your VirtualHost configuration $ /etc/rc.d/init.d/httpd restart

Bamboo

Download and extract Bamboo.

Set bamboo.home under <bamboo-service>/atlassian-bamboo/WEB-INF/classes/bamboo-init.properties

1 2 # start Bamboo $ ./<bamboo-service>/bin/start-bamboo.sh

Go to your personal computer and edit the HOSTS as per following:

1 2 # edit HOSTS $ <ip-to-centos-vm> bamboo.centos.vm
Updated on May 12, 2025

Still need help?

The Atlassian Community is here for you.