Can't figure out how to cache mysql-client in bitbucket pipelines

I am fairly new to pipelines and I am having trouble caching my dependencies to speed up my builds. I have looked over the documentation for pipelines and dependency caching specifically and don't quite understand what my path needs to be in the definitions section in order to correctly cache mysql-client after I install it?

I am using the following lines to install mysql and the mysqli extension:

- apt-get install -y unzip mysql-client
- docker-php-ext-install mysqli

 Ultimately, I am executing a php script that uses mysqli functions to access a remote database and perform tests/updates after each commit. The download and installation process of mysql takes 2/3 of build time, so I desperately need to cache it, I just don't understand how.

I am not very familiar with linux or bash commands, so cross-referencing the documentation is only getting me so far. Any help would be greatly appreciated!

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

262 views 3 8
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