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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.