You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Divo supports callbacks during the setup block that allow for code to be executed between the environment starting and the app's individual applications starting up.
I'd suggest checking arity and passing the context based on that, so you don't break backwards compatibility. Also, it's just generally more flexible, which is always a win for a library IMO.
We ran into a need for this when cleaning and populating Minio's fake S3 buckets prior to a test. We're doing it with a slightly hacky init container and a shell script, and this seemed like a possible solution to keeping test setup in the tests themselves.
Currently, Divo supports callbacks during the setup block that allow for code to be executed between the environment starting and the app's individual applications starting up.
divo/lib/divo.ex
Lines 30 to 40 in 9fccc40
I would like to propose passing the compose file's context to each callback to allow them access to ports and volume mount points for setup calls.
The text was updated successfully, but these errors were encountered: