packetchaos / navi

A Command-line tool which leverages the Tenable.io API to reduce the time it takes to get information that is common during remediation or a troubleshooting event
GNU General Public License v3.0
72 stars 26 forks source link

Update Wiki on how to locally mount Navi.db #29

Closed spiffycell closed 2 years ago

spiffycell commented 2 years ago

When running Navi as a docker image, to visualize the local data cached from SQLite in a tool like dbeaver, I need to add a -v $HOME/.navi/navi.db:/usr/src/app/navi.db in the run command.

Can this be clarified in the Wiki for folks who want to use the docker image, but also want to use a local DB tool?

packetchaos commented 2 years ago

So I understand the ask. Are you looking to mount the Navi.db on the local host rather than inside of the container?

spiffycell commented 2 years ago

Correct, use the container's environment, but mount the navi.db locally

packetchaos commented 2 years ago

Aright. I updated the documentation with the following line:

docker run -it -p 8000:8000 --mount type=bind,source="$(pwd)",target=/usr/src/app silentninja/navi /bin/bash

This will mount the container to the local host.

Thank you for calling this out!