Setting up bamboo instance with LAMP

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?


1 answer

1 accepted

0 vote

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


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

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

cat >> /home/bamboo/ << EOF

custom.database.type = MySQL



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

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot