A Docker image that provides JaCoCo CLI and Swagger Coverage tools for Java code coverage analysis and API testing.
This Docker image is built on top of ringcentral/jdk:17-noble and includes:
- JaCoCo CLI: Java Code Coverage Library command-line interface
- Swagger Coverage: API coverage analysis tool
- Essential development tools (git, curl, wget, zip, etc.)
- 🚀 Based on JDK 17 (Ubuntu Noble)
- 📊 Pre-installed JaCoCo CLI for code coverage reporting
- 🔍 Swagger Coverage tool for API testing coverage
- 🛠️ Common development utilities included
- ⚡ Automated builds via GitHub Actions
docker pull ringcentral/jacoco-tool:latestdocker run --rm -v $(pwd):/workspace ringcentral/jacoco-tool:latest \
java -jar /opt/jacoco/jacococli.jar <command> <options>docker run --rm -v $(pwd):/workspace ringcentral/jacoco-tool:latest \
swagger-coverage <command> <options>docker run --rm \
-v $(pwd):/workspace \
-w /workspace \
ringcentral/jacoco-tool:latest \
java -jar /opt/jacoco/jacococli.jar report jacoco.exec \
--classfiles ./build/classes \
--sourcefiles ./src/main/java \
--html ./coverage-reportdocker run --rm \
-v $(pwd):/workspace \
-w /workspace \
ringcentral/jacoco-tool:latest \
java -jar /opt/jacoco/jacococli.jar merge *.exec \
--destfile merged.exec| Tool | Location | Description |
|---|---|---|
| JaCoCo CLI | /opt/jacoco/jacococli.jar |
Java code coverage tool |
| Swagger Coverage | /usr/local/bin/swagger-coverage |
API coverage analysis |
| Git | System installed | Version control |
| Maven/Gradle | Via JDK | Build tools support |
latest: Latest stable version17-noble: Specific JDK version tag
cd images
docker build -t jacoco-tool:local -f Dockerfile .This project uses GitHub Actions for automated builds:
- Triggers on pushes to
mainbranch - Automatically builds and pushes to Docker Hub
- Tags images with version from Dockerfile
- Docker 20.10+
- Docker Hub account (for pulling images)
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
For issues and questions:
- Open an issue on GitHub
- Contact the RingCentral DevOps team
Maintained by: RingCentral DevOps Team