Skip to content

fix(docker): replace deprecated dbms.* neo4j settings with server.* (#398)#483

Open
prdai wants to merge 2 commits into
LDFLK:mainfrom
prdai-archive:fix/neo4j-deprecated-dbms-settings-398
Open

fix(docker): replace deprecated dbms.* neo4j settings with server.* (#398)#483
prdai wants to merge 2 commits into
LDFLK:mainfrom
prdai-archive:fix/neo4j-deprecated-dbms-settings-398

Conversation

@prdai
Copy link
Copy Markdown
Contributor

@prdai prdai commented May 22, 2026

Summary

Neo4j 5.x emits 7 deprecation warnings on every startup of the dev Neo4j container because deployment/development/docker/neo4j/Dockerfile still passes the legacy NEO4J_dbms_* environment variables. This PR renames them to the new server.* namespace, matching the convention already used in deployment/choreo/development/docker/neo4j/Dockerfile.

Changes

  • NEO4J_dbms_memory_pagecache_sizeNEO4J_server_memory_pagecache_size
  • NEO4J_dbms_memory_heap_initial__sizeNEO4J_server_memory_heap_initial__size
  • NEO4J_dbms_memory_heap_max__sizeNEO4J_server_memory_heap_max__size
  • NEO4J_dbms_directories_dataNEO4J_server_directories_data
  • NEO4J_dbms_directories_logsNEO4J_server_directories_logs
  • NEO4J_dbms_directories_importNEO4J_server_directories_import
  • NEO4J_dbms_directories_pluginsNEO4J_server_directories_plugins

NEO4J_dbms_security_procedures_unrestricted is intentionally left as-is — the dbms.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.

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
Copilot AI review requested due to automatic review settings May 22, 2026 11:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 with server.memory.* equivalents
  • Replace dbms.directories.* env vars with server.directories.* equivalents

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deployment/development/docker/neo4j/Dockerfile
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread deployment/development/docker/neo4j/Dockerfile Outdated
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docker] Fix Warnings in the neo4j Container

2 participants