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 Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,196 views 8 10
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