Running Bamboo on CentOS 6.5

Still need help?

The Atlassian Community is here for you.

Ask the community

Requirements

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:

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.

username: root
password: adminuser

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

# 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

# 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:

# install httpd
$ yum -y install httpd

Lets configure our httpd

# 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

$ /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

# create index.html
vi /var/www/html/index.html
<!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

# 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:

# 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

# edit httpd configuration file
$ vi /etc/httpd/conf/httpd.conf


# add the following at the end of httpd configuration file
Include conf/vhosts/*.conf
# create vhosts directory.
$ mkdir /etc/httpd/conf/vhosts
# 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>
# 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

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

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

# edit HOSTS
$ <ip-to-centos-vm>		bamboo.centos.vm
Last modified on Dec 16, 2014

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.