Closed OverkillGuy closed 3 months ago
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.
_transfer_seed()
_start()
_connect()
Currently implemented only in MySQL, but extensible to others that use the /docker-entrypoint-initdb.d/ system.
/docker-entrypoint-initdb.d/
Updated to use "transferable" like kafka does, which makes this support remote docker engines!
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.