You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@solr.apache.org by "adityamparikh (via GitHub)" <gi...@apache.org> on 2025/10/27 00:19:46 UTC
[PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
adityamparikh opened a new pull request, #6:
URL: https://github.com/apache/solr-mcp/pull/6
## Summary
This PR adds comprehensive Docker support to the Solr MCP Server project using Google's Jib for containerization and GitHub Actions for automated CI/CD.
### Key Features
**Jib Integration:**
- Multi-platform Docker images (linux/amd64, linux/arm64)
- No Docker daemon required for builds
- Optimized layered images for faster deployments
- Support for local builds, Docker Hub, and GitHub Container Registry
**GitHub Actions Workflow:**
- Automated JAR builds and testing on every push/PR
- Automated Docker image publishing to GHCR and Docker Hub
- Smart tagging strategy:
- Main branch: `version-SHA` + `latest`
- Version tags: semantic version + `latest`
- Test results and coverage reports as artifacts
**Documentation:**
- Comprehensive README updates with Docker setup guide
- Integration instructions for Claude Desktop using Docker
- FAQ explaining why Jib was chosen over Spring Boot Buildpacks
- Publishing instructions for both Docker Hub and GHCR
### Why Jib over Buildpacks?
Jib was chosen because Docker images built with Spring Boot Buildpacks output logs to stdout, which interferes with the MCP protocol's STDIO transport. The MCP protocol requires a clean stdout channel - any extraneous output causes connection errors with MCP clients like Claude Desktop.
### Changes
- Add Jib Gradle plugin (v3.4.5) to `gradle/libs.versions.toml`
- Add Jib configuration to `build.gradle.kts` with multi-platform support
- Add GitHub Actions workflow (`.github/workflows/build-and-publish.yml`)
- Update README with Docker documentation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@solr.apache.org
For additional commands, e-mail: dev-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3458459126
FYI @epugh @chatman
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat: Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3471014700
@epugh https://github.com/apache/solr-mcp/pull/7 will update to solr-mcp everywhere.
Removed sonar and claude. Will use whatever apache org allows us to.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat: Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3472785153
Thanks! We may not need a tar output so we may be able to remove it from the doc.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat: Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3473150622
I like less build tooling!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3461744728
@adityamparikh do we need to deal with the sonarqube failure in this PR? I *think* we moved to a differetn tool...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat: Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh merged PR #6:
URL: https://github.com/apache/solr-mcp/pull/6
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3462046213
I wonder... should the artifact be called `solr-mcp` instead of `solr-mcp-server` since the repo is `solr-mcp`... Keep the pattern the same! And maybe soemday we include `solr-mcp` artifact into Solr itself....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3462406253
> I am getting this error on running `./gradlew jibDockerBuild`.... I am on an older mac with Intel chip:
>
>
>
> ```
>
> ➜ solr-mcp git:(pr/6) ✗ ./gradlew jibDockerBuild
>
> > Task :jibDockerBuild FAILED
>
>
>
> [Incubating] Problems report is available at: file:///Users/epugh/Documents/projects/solr-mcp/build/reports/problems/problems-report.html
>
>
>
> FAILURE: Build failed with an exception.
>
>
>
> * What went wrong:
>
> Execution failed for task ':jibDockerBuild'.
>
> > Check the full stace trace, and if the root cause is from ASM ClassReader about unsupported class file version, see https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#i-am-seeing-unsupported-class-file-major-version-when-building
>
>
>
> * Try:
>
> > Run with --stacktrace option to get the stack trace.
>
> > Run with --info or --debug option to get more log output.
>
> > Run with --scan to generate a Build Scan (Powered by Develocity).
>
> > Get more help at https://help.gradle.org.
>
>
>
> Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
>
>
>
> You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
>
>
>
> For more on this, please refer to https://docs.gradle.org/9.1.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
>
>
>
> BUILD FAILED in 3s
>
> 3 actionable tasks: 1 executed, 2 up-to-date
>
> ➜ solr-mcp git:(pr/6) ✗ java --version
>
> openjdk 25.0.1 2025-10-21 LTS
>
> OpenJDK Runtime Environment Temurin-25.0.1+8 (build 25.0.1+8-LTS)
>
>
>
> ```
I can't try this at this moment but I had downgraded to jdk 21 since jib support was not added for jdk 25 but the latest 3.4.7 version should have it https://github.com/GoogleContainerTools/jib/compare/v3.4.5-gradle...v3.4.7-gradle
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat: Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3514698641
wow this touched seemingly every source file to format it. Consequently, this is unreviewable. Please never do that in a PR about something else.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] feat: Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3472580214
okay, jibBuildDocker is working. jibBuildTar isn't: Execution failed for task ':jibBuildTar'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: multi-platform image building not supported when building a local tar image however I think we can fix that in the next PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3458910202
Looks like we need to resolve some conflicts first... Thoughts on how to test this, just maybe go through the docker steps?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3462067767
I am getting this error on running `./gradlew jibDockerBuild`.... I am on an older mac with Intel chip:
```
➜ solr-mcp git:(pr/6) ✗ ./gradlew jibDockerBuild
> Task :jibDockerBuild FAILED
[Incubating] Problems report is available at: file:///Users/epugh/Documents/projects/solr-mcp/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jibDockerBuild'.
> Check the full stace trace, and if the root cause is from ASM ClassReader about unsupported class file version, see https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#i-am-seeing-unsupported-class-file-major-version-when-building
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/9.1.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 3s
3 actionable tasks: 1 executed, 2 up-to-date
➜ solr-mcp git:(pr/6) ✗ java --version
openjdk 25.0.1 2025-10-21 LTS
OpenJDK Runtime Environment Temurin-25.0.1+8 (build 25.0.1+8-LTS)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3462095627
Yeah, I think we should be `solr-mcp` everywhere!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "adityamparikh (via GitHub)" <gi...@apache.org>.
adityamparikh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3449068056
Next step - publish to github mcp registry https://github.blog/ai-and-ml/generative-ai/how-to-find-install-and-manage-mcp-servers-with-the-github-mcp-registry/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@solr.apache.org
For additional commands, e-mail: dev-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3458795280
just clicked approval on the workflows..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3461910567
This requires Java 25! Exciting! Do we think there will be issues with adoption if we require Java 25 if this is running "on my local laptop"?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org
Re: [PR] Add Docker support with Jib and GitHub Actions CI/CD [solr-mcp]
Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on PR #6:
URL: https://github.com/apache/solr-mcp/pull/6#issuecomment-3462072451
Same error with `./gradlew jibBuildTar`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org