Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Setting up bamboo instance with LAMP

Jesus Rodriguez August 7, 2012

Hi all,

I'm interested on run few commands to setup a database on a bamboo instance before run the tests of my application.

I tried setting up an script in the tasks section of a Plan, but I received an error (seems that these scripts run with no tty)

Is there any way to install these packages (php-pdo, mysql-client, some pear packages,...) before start the test suit? Any other suggestion?

Thanks,

1 answer

1 accepted

0 votes
Answer accepted
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2012

We use the following instance setup script (you can paste it via Administration->Image Configuration->Edit) to run Bamboo EC2 tests on MySQL:

#!/bin/sh

export PATH=/sbin:/bin:/usr/sbin:/usr/bin

install()
{
yum install -y mysql-server
service mysqld start
/usr/bin/mysqladmin -u root password ''

cat >> /home/bamboo/bamboo-capabilities.properties << EOF

custom.database.type = MySQL

EOF

}

install >/tmp/startup.log 2>&1

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events