adityamparikh opened a new pull request, #4:
URL: https://github.com/apache/solr-mcp/pull/4
## 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.
### Test Plan
- [x] JAR builds successfully with `./gradlew build`
- [x] Docker image builds locally with `./gradlew jibDockerBuild`
- [ ] GitHub Actions workflow runs successfully (will run after PR creation)
- [ ] Docker image can be pulled and run from GHCR
- [ ] MCP server works correctly when run in Docker container with STDIO mode
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]