When it comes to initializing mysql database (on a service container), the documentation refers to the official docker hub MySQL page. Normally one would start a container and mount host volume with init .sql files that would be picked up by docker container and ran from mounted volume /docker-entrypoint-initdb.d.
I hit the wall trying to figure out how to this in the context of the bitbucket-pipelines.yml.
Any help would be greatly appreciated!
- Michael
In your pipeline, you could do the following;
Some more details on definitions can be found here.
Thank you Max!
I though i would need to go this route, but wanted to keep the build times to a minimum. Thinking maybe we will maintain our custom db container separately and use it for the test step as a service. So that we don't have to build/push/pull a service container while building the app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.