Self Hosted Trivy Instance Metadata Files #9705
petere2018
started this conversation in
Documentation
Replies: 1 comment 2 replies
-
|
Hi @petere2018! The Java database is located in the ❯ ll ~/Library/Caches/trivy/java-db
total 2454640
-rw-r--r-- 1 tososomaru staff 150B Aug 7 15:26 metadata.json
-rw-r--r-- 1 tososomaru staff 1.2G Aug 7 06:58 trivy-java.dbWe should add this information to the documentation — it might have been overlooked during the page reorganization. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hello,
When following the documentation for self hosting Trivy I am following the Populating the Trivy Cache and Java DB adaptions sections. The Populating Trivy Cache section is clear that you end up with a trivy.db file and metadata.json file and you put them both in
${TRIVY_CACHE_DIR}/db/. In the next section is says "For Java DB the process is the same". When I unzipped the javadb.tar.gz file, I also end up with a metadata.json file. I now have two metada.json files and it seems like the instructions say to put them both under the/db/directory. Am I misinterpreting the instructions? Should the JavaDB files go in a different directory altogether?Link
https://trivy.dev/latest/docs/advanced/self-hosting/
Suggestions
Expand on what to do with the two metadata.json files. Currently the documentation seems to imply two files with the same name go in the same directory.
Beta Was this translation helpful? Give feedback.
All reactions