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.
From setup to deployment—this learning path shows you how to build your first app using Forge. Learn the essentials, streamline workflows, and bring custom solutions to life across Jira, Confluence, and more.
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.