Skip to content

Neo4j container: support plugins other than Apoc #993

@stscoundrel

Description

@stscoundrel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions