FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(mysql): Add seed support in MySQL by OverkillGuy · Pull Request #552 · testcontainers/testcontainers-python · GitHub

fix(mysql): Add seed support in MySQL - #552

Merged
alexanderankin merged 4 commits into
testcontainers:mainfrom
OverkillGuy:db-seed-doc
May 11, 2024
Merged

fix(mysql): Add seed support in MySQL#552
alexanderankin merged 4 commits into
testcontainers:mainfrom
OverkillGuy:db-seed-doc

Conversation

OverkillGuy commented Apr 21, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

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.

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.

Copy link
Copy Markdown
Contributor Author

Updated to use "transferable" like kafka does, which makes this support remote docker engines!

OverkillGuy marked this pull request as ready for review April 27, 2024 13:42
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 merged commit 396079a into testcontainers:main May 11, 2024
OverkillGuy deleted the db-seed-doc branch May 11, 2024 15:43
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>
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👥 community feat feature but its a community module so we wont bump tc core for it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL