Skip to content

add HTML report service and generate_report.py#579

Open
Ariel-Seba wants to merge 1 commit into
docker:masterfrom
Ariel-Seba:feat/html-report-service
Open

add HTML report service and generate_report.py#579
Ariel-Seba wants to merge 1 commit into
docker:masterfrom
Ariel-Seba:feat/html-report-service

Conversation

@Ariel-Seba
Copy link
Copy Markdown

Summary

  • Tag the built image in docker-compose.yml so it can be reused without rebuilding on every run
  • Mount ./log into the benchmark container so JSON/log outputs are accessible to other services
  • Add a report nginx service to docker-compose.yml that serves the log/ directory on port 8099
  • Add generate_report.py to convert the JSON output into a color-coded HTML report

Usage

# Run the benchmark
docker compose run --rm docker-bench-security

# Generate HTML report
python3 generate_report.py

# View the report in a browser
docker compose up report -d
# Open http://localhost:8099/report.html

Test plan

  • Run docker compose run --rm docker-bench-security and verify JSON is written to log/
  • Run python3 generate_report.py and verify log/report.html is generated
  • Run docker compose up report -d and open http://localhost:8099/report.html
  • Verify PASS/WARN/INFO/NOTE results are color-coded correctly

🤖 Generated with Claude Code

- Tag the built image in docker-compose so it can be reused without rebuilding
- Mount ./log into the benchmark container to make JSON/log output accessible to other services
- Add nginx report service that serves the log/ directory on port 8099
- Add generate_report.py to convert the JSON output into a readable HTML report

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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