fix(docker): replace deprecated dbms.* neo4j settings with server.* (#398)#483
fix(docker): replace deprecated dbms.* neo4j settings with server.* (#398)#483prdai wants to merge 2 commits into
Conversation
Neo4j 5.x emits deprecation warnings on startup for the legacy `dbms.directories.*` and `dbms.memory.*` settings; they have been renamed to the `server.*` namespace. Update the dev Neo4j Dockerfile's NEO4J_ env vars to the new names. `dbms.security.procedures.unrestricted` is intentionally left untouched (the security namespace was not renamed). Verified locally: `docker build` + run, container starts cleanly with zero deprecation warnings in the startup log. Fixes LDFLK#398
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the Neo4j dev Docker image configuration to use the newer Neo4j 5.x server.* setting names via environment variables.
Changes:
- Replace deprecated
dbms.memory.*env vars withserver.memory.*equivalents - Replace
dbms.directories.*env vars withserver.directories.*equivalents
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request updates several Neo4j environment variables in the Dockerfile from the 'dbms' namespace to the 'server' namespace to align with Neo4j 5 configuration standards. A review comment suggests also updating the 'NEO4J_dbms_security_procedures_unrestricted' variable to the 'server' namespace for consistency and to avoid potential deprecation warnings.
Address PR review feedback: NEO4J_dbms_security_procedures_unrestricted was renamed to NEO4J_server_security_procedures_unrestricted in Neo4j 5. Aligns development Dockerfile with the choreo Dockerfile.
|
@prdai |
Summary
Neo4j 5.x emits 7 deprecation warnings on every startup of the dev Neo4j container because
deployment/development/docker/neo4j/Dockerfilestill passes the legacyNEO4J_dbms_*environment variables. This PR renames them to the newserver.*namespace, matching the convention already used indeployment/choreo/development/docker/neo4j/Dockerfile.Changes
NEO4J_dbms_memory_pagecache_size→NEO4J_server_memory_pagecache_sizeNEO4J_dbms_memory_heap_initial__size→NEO4J_server_memory_heap_initial__sizeNEO4J_dbms_memory_heap_max__size→NEO4J_server_memory_heap_max__sizeNEO4J_dbms_directories_data→NEO4J_server_directories_dataNEO4J_dbms_directories_logs→NEO4J_server_directories_logsNEO4J_dbms_directories_import→NEO4J_server_directories_importNEO4J_dbms_directories_plugins→NEO4J_server_directories_pluginsNEO4J_dbms_security_procedures_unrestrictedis intentionally left as-is — thedbms.security.*namespace was not renamed in Neo4j 5, and the original issue's log did not flag it.Fixes #398
Prepared with AI assistance (Claude Code); reviewed by me before pushing.