Skip to content

RANGER-5680: Make Solr optional in docker so Ranger can run without it#1058

Draft
paras200 wants to merge 1 commit into
apache:masterfrom
paras200:RANGER-5680
Draft

RANGER-5680: Make Solr optional in docker so Ranger can run without it#1058
paras200 wants to merge 1 commit into
apache:masterfrom
paras200:RANGER-5680

Conversation

@paras200

@paras200 paras200 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor
  • Extract the ranger-solr service from docker-compose.ranger.yml into a dedicated docker-compose.ranger-solr.yml (mirrors the docker-compose.ranger-opensearch.yml pattern)
  • Remove the hard 'depends_on: ranger-solr' from the ranger, ranger-pdp and ozone-om services so the core stack starts without Solr
  • Update README: core services now come up without Solr; document Solr as opt-in via -f docker-compose.ranger-solr.yml, and add the Solr compose file to the all-containers and Solr audit-dispatcher commands (which still depend on ranger-solr)

Validated with 'docker compose config' across base-only (Solr-free), pdp, ozone and Solr audit-server combinations.

Note: RANGER_AUDIT_STORE env-var selector to be added as a follow-up.

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix. Create an issue in ASF JIRA before opening a pull request and
set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. RANGER-XXXX: Fix a typo in YYY))

How was this patch tested?

(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)

- Extract the ranger-solr service from docker-compose.ranger.yml into a dedicated docker-compose.ranger-solr.yml (mirrors the docker-compose.ranger-opensearch.yml pattern)
- Remove the hard 'depends_on: ranger-solr' from the ranger, ranger-pdp and ozone-om services so the core stack starts without Solr
- Update README: core services now come up without Solr; document Solr as opt-in via -f docker-compose.ranger-solr.yml, and add the Solr compose file to the all-containers and Solr audit-dispatcher commands (which still depend on ranger-solr)

Validated with 'docker compose config' across base-only (Solr-free), pdp, ozone and Solr audit-server combinations.

Note: RANGER_AUDIT_STORE env-var selector to be added as a follow-up.
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.

1 participant