Open CharlieDigital opened 2 months ago
Hi! Can you try NEO4J_PLUGINS: "['apoc', 'apoc-extended', 'graph-data-science']"
and let me know if it helps?
@Lou1415926 , unfortunately this does not work because the underlying code is expecting valid JSON.
I will try a few other variations and see:
# Doesn't work; fails with validation error
NEO4J_PLUGINS: "[\"apoc\", \"apoc-extended\", \"graph-data-science\"]"
# Isn't recognized by the application; ignored
NEO4J_PLUGINS: "['apoc', 'apoc-extended', 'graph-data-science']"
If I manually correct it in the console by editing the JSON:
{
"name": "NEO4J_PLUGINS",
"value": "[\"apoc\", \"apoc-extended\", \"graph-data-science\"]"
},
This is OK
Other combinations also yield the incorrect JSON:
NEO4J_PLUGINS: "'["apoc", "apoc-extended", "graph-data-science"]'"
NEO4J_PLUGINS: "'[\"apoc\", \"apoc-extended\", \"graph-data-science\"]'"
The other alternative is to put it into an SSM parameter and map it to the container as a secret
secrets:
NEO4J_PLUGINS: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/NEO4J_PLUGINS
Where the value of the secret would be a typical JSON array:
["apoc", "apoc-extended", "graph-data-science"]
ah, I think I know what's wrong now. Can you try
NEO4J_PLUGINS: |
["apoc", "apoc-extended", "graph-data-science"]
This unmarshals this chunk of manifest into yaml literal style so that your string is passed on literally.
Description:
Receiving the following error when using an environment variable which is a string of a string array (JSON array string)
Possibly related:
1120
1292
Details:
Per Neo4j documentation, the environment variable
NEO4J_PLUGINS
accepts a value which is a string like so:See: https://neo4j.com/docs/operations-manual/current/docker/plugins/
When specifying this as a variable in
manifest.yaml
:Yields the error as described.
Observed result:
Expected result:
The environment variable is set as expected.
Debugging:
Commenting out this line allows the container to be deployed, but with this line uncommented, the deploy fails during unmarshalling of the config.