-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mysql): Add seed support in MySQL #552
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New capability of "seeding" a db container, by running a database-specific command or twelve to inject data (DB schema or sample data). Relies on the image's support for /docker-entrypoint-initdb.d/ folder
alexanderankin
changed the title
Add seed support in MySQL
fix: Add seed support in MySQL
Apr 21, 2024
alexanderankin
added
the
community-feat
feature but its a community module so we wont bump tc core for it
label
Apr 21, 2024
Stop waiting for connection, which requires ready container. Instead copy data first thing.
OverkillGuy
commented
Apr 26, 2024
Updated to use "transferable" like kafka does, which makes this support remote docker engines! |
OverkillGuy
commented
Apr 26, 2024
OverkillGuy
changed the title
fix: Add seed support in MySQL
feat: Add seed support in MySQL
Apr 27, 2024
OverkillGuy
changed the title
feat: Add seed support in MySQL
fix: Add seed support in MySQL
Apr 27, 2024
alexanderankin
changed the title
fix: Add seed support in MySQL
fix(mysql): Add seed support in MySQL
May 11, 2024
alexanderankin
pushed a commit
that referenced
this pull request
May 14, 2024
🤖 I have created a release *beep* *boop* --- ## [4.4.1](testcontainers-v4.4.0...testcontainers-v4.4.1) (2024-05-14) ### Bug Fixes * Add memcached container ([#322](#322)) ([690b9b4](690b9b4)) * Add selenium video support [#6](#6) ([#364](#364)) ([3c8006c](3c8006c)) * **core:** add empty _configure to DockerContainer ([#556](#556)) ([08916c8](08916c8)) * **core:** remove version from compose tests ([#571](#571)) ([38946d4](38946d4)) * **keycloak:** add realm imports ([#565](#565)) ([f761b98](f761b98)) * **mysql:** Add seed support in MySQL ([#552](#552)) ([396079a](396079a)) * url quote passwords ([#549](#549)) ([6c5d227](6c5d227)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ref #541.
New capability of "seeding" a db container using image's support for /docker-entrypoint-initdb.d/ folder.
Using the "transferable" system, borrowed from Kafka.
Updates DbContainer to have a new (NOOP-default)
_transfer_seed()
method, run after_start()
and before_connect()
, to allow the folder transfer.Currently implemented only in MySQL, but extensible to others that use the
/docker-entrypoint-initdb.d/
system.