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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,030 views 1 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