Replies: 4 comments 2 replies
-
The Docker bind mounts complicate the invocation for sure. Presumably What happens if you try this invocation instead?
Of course, in the above, the |
Beta Was this translation helpful? Give feedback.
-
Thanks for replying. Running from $TMPDIR works if I want to scan the $TMPDIR. If I try another folder ie
I get the following error:
As you said Docker bind complicates things. I may compile locally (but the article that pointed me to the app said it took a while hunting down the dependencies) or just write a short bash function that runs scan/report then deletes the datastore. |
Beta Was this translation helpful? Give feedback.
-
@Praful So, I think the issue that you're running into is purely a Docker thing. A Docker container runs with its own view of the filesystem. If you want to read files from the host or write files back to the host, you have to map those paths into paths in the Docker container. Here's your
The Docker invocation maps In your latest test, you switched to
When you run If you expand the values of
In this case, what you are trying to scan ( Does this make sense? P.S. From your use case, it sounds like it might be useful to have some Nosey Parker mode that scans and reports all in one step, without saving the intermediate datastore. 🤔 |
Beta Was this translation helpful? Give feedback.
-
@bradlarsen thank you for explaining what's going on with docker. You've guessed sufficiently correctly to help me find a workable solution. Everything is a subdir of Your understanding of my use case is also correct: I'd prefer a combined scan/report function! I appreciate that scanning and reporting are logically distinct operations. I guess scan is a "summary" view and "report" a detailed view of the results and the app is storing the results of the scan in case the user later wants a detailed view and another scan could be too time-consuming? Perhaps there's a historical element to the feature set but an output switch could be provided for those who want to save the results, either in "summary" or "detailed" mode? Thanks again for engaging with my issue 😊 |
Beta Was this translation helpful? Give feedback.
-
I'm trying to centralise the datastore so that it doesn't exist in mulitple directories.
I've created this alias for docker then initialised the datastore:
This creates a datastore in $TMPDIR/datastore.np/
When I run
I get error
even though the file does exist.
How should I create a centralised datastore and use it for scanning and reporting?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions