Using Redis cache as a cache for Java Index DB #6177
-
QuestionHi guys! I have an issue - very often we receive timeout during downloading db for vulnerabilities and Java Index from GHCR. Did you figure out how to use Trivy as a server with Redis and cache there trivy-db and trivy-java-db? Many thanks for your support on this :) TargetContainer Image ScannerVulnerability Output FormatJSON ModeClient/Server Operating SystemCentOS7 VersionVersion: 0.49.1
Vulnerability DB:
Version: 2
UpdatedAt: 2024-02-21 12:10:50.677545486 +0000 UTC
NextUpdate: 2024-02-21 18:10:50.677545146 +0000 UTC
DownloadedAt: 2024-02-21 13:07:04.638160228 +0000 UTC |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello @KMikkey Do you mean using |
Beta Was this translation helpful? Give feedback.
-
Re #7528 |
Beta Was this translation helpful? Give feedback.
e.g. GitHub CI/CD supports cache persistence. You can change Trivy cache directory (--cache-dir flag) and save this directory to GitHub cache -https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#using-the-cache-action
Right.