Repository navigation
Add bundled Solr modules and local plugin JAR support - #84
Merged
Merged
Conversation
✅ Deploy Preview for lando-solr ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Adds two Solr 9/10 service options:
modules: enable bundled modules throughSOLR_MODULES, includinganalysis-extrasfor ICU support.plugins: load local JARs and their dependencies from a project-relative directory.Local JARs are mounted read-only and copied into Solr home's shared library directory before startup. Managed JAR tracking removes deleted plugins on restart without replacing bundled libraries. Invalid options, escaping paths, missing directories, and library filename conflicts fail clearly.
Includes configuration docs, unit tests, and live Docker integration coverage in Linux CI.
Closes #58.
Validation
npm test: lint clean; 10 passing, 1 pre-existing pending.npm run test:integration: all four module/local-JAR checks pass on Solr 9.9 and 10, verified by loading ICU field types through the schema API.npm run docs:build: passes.Usage
Both options are optional. Run
lando rebuildafter changing options or JARs. JAR compatibility and dependencies remain the user's responsibility; no automatic downloads or dependency resolution.Note
Medium Risk
Changes Solr 9/10 container startup, volumes, and library layout; misconfigured JARs or conflicts can block startup, though validation and tests limit exposure.
Overview
Adds Solr 9/10 Landofile options
modules(maps toSOLR_MODULESfor image-bundled modules likeanalysis-extras) andplugins(project-relative directory of third-party JARs). The builder validates both options, mounts the plugin folder read-only, and wiresinstall-plugins.shinto Solr 9/10 startup.Local plugins are copied into the Solr data home
libbefore the server starts, with.lando-pluginstracking so restarts refresh or remove managed JARs without clobbering existing libraries; filename conflicts fail startup.Docs, changelog, and README describe usage; unit tests cover validation and the install script, and Linux CI runs a new Docker integration suite that proves ICU-related types load via modules vs copied JARs.
Reviewed by Cursor Bugbot for commit 372e4cb. Bugbot is set up for automated code reviews on this repo. Configure here.