-
-
Notifications
You must be signed in to change notification settings - Fork 251
Description
The standard Neo4j docker image supports a selection of commonly used plugins. They can be set up by passing a list of plugins as env variables.
Currently the Neo4j Testcontainer for Node only supports standaard Apoc, by using withApoc method. It works fine, but other plugins like Apoc Extended or Graph Algorithms can not be setup similarly. They probably could be set using raw env values, but that would then conflict with what withApoc sets up.
Instead of adding convenience methods for them all, I would suggest we add withPlugins method that accepts a list of plugins to setup. Could be based on enumeration of supported plugins, or just left to the image used. It should error if incorrect plugins are included. I believe this is how Java and Go implementations of TestContainers handle other plugins.
I'll probably just open PR about this myself, but adding this issue in advance for possible comments.