swri-robotics / bag-database

A server that catalogs bag files and provides a web-based UI for accessing them.
Other
345 stars 71 forks source link

ability to save the result of script processing to the server directory #123

Open anatolykabakov opened 3 years ago

anatolykabakov commented 3 years ago

Add the ability to save the result of script processing to the server directory. This will allow you to remotely process bags and save the processing result to the server. This is possible by adding the line to the file docker-compose.yaml volumes: server/dir/out/: /bdb/out

And to the file RunnableScript.java bindBuilder.add(Joiner.on(':').join("/bdb/out", "/bdb/out"));

pjreed commented 3 years ago

This sounds like a good idea to me, and I think it'd be pretty easy to implement. I think it would also make sense to have an option for scripts to control whether they write their stdout / stderr to that folder or not, and I'll also want to update the documentation with examples, but I'll take a look at doing this soon.