The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the recommended approach to populating a DB schema for running integration tests?

Joshua Stringfellow
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 26, 2021

Bitbucket Pipelines recommends using services like mysql for testing, etc.

Is there a straightforward way of importing a schema and/or data into a mysql service?

Typically you can provide a shell or sql script in the `/docker-entrypoint-initdb.d` folder and the mysql container will run that on startup, setting up the DB.

I can't see a straightforward way of doing that with Bitbucket Pipelines, am I missing something?

If not, what is the expected approach for populating the database, DIY?

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events