Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding MySQL Support #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

smyth64
Copy link

@smyth64 smyth64 commented Feb 28, 2016

Hi!
I think this is very useful, because if we want to use Bamboo for production needing a mysql database. So it's nice to have the necessary mysql connector already installed. (It's just +1MB)

Adding $BAMBOO_DIR to MySQL Connector Installer
Checking for $MYSQL_CONNECTOR_VERSION Environment Variable and set default value if it doesn't exist.
@nichaladas
Copy link

Good work on the pull request, I require these same changes for our setup and the latest versions of Bamboo require Java 1.8

echo "Add MySQL"
MYSQL_CONNECTOR_VERSION="5.1.38"
wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-$MYSQL_CONNECTOR_VERSION.tar.gz -O /tmp/mysql-connector.tar.gz
tar xzf /tmp/mysql-connector.tar.gz -C /tmp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracting into /tmp is poor practice, I'd recommend creating a temporary directory (MYSQL_TMP_DIR=mktemp -d) and extracting into that. It has benefits, as shown in my next comment...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants