Conversation
|
@bgruening do you have an example of a tool that accesses a database? I don't think I had experience writing such a tool. |
Hello @bgruening, I was wondering if you could comment on this? What I meant with 'database' was anything accessed by the tool (could be e.g. a JSON file, but we would ideally like to use RocksDB: https://rocksdb.org/docs/getting-started.html). For a small file, I would put it into |
|
The database is something like a reference that the tool needs during runtime? But is read-only? |
|
In that case you can use location files (.loc) files. Those are tabular files that contain a bit of metadata for your "db" and the path to the DB. An admin can then configure this file and downloads the big DB and puts them somewhere locally (assuming the DB is a flat file, and not a server.) |
Yes, exactly. Thanks a lot :) |
|
Similar to this tool: https://github.com/bgruening/galaxytools/blob/master/tools/wordcloud/test-data/fonts.loc With a loc file for fonts. |
|
@bgruening here is the Dockerfile, if you have any suggestions: https://github.com/simonbray/SHCoeffsDev/blob/main/Dockerfile The image is 9 GB, but there is a lot in there😬 |
|
Is the container smaller? Still WIP? |
|
It is 6.5 GB now. Still WIP :) |
|
@bgruening I am a bit stuck with the loc file which I tried to implement in the last commit. Tests are failing with |
|
Oh, I missed the |
|
|
Does that path belong to a different user? Does it have world writeable permissions? |
It is the mounted When the tool is installed, will it be possible for the mounted data to be writeable? I remember we talked about it in Freiburg |
|
Depends in the deployment, but I would always assume that most mounted volumes are read-only. Only the job dir is writable. |
|
|
A bunch of new errors but it looks like solid progress :) |
|
@bgruening I think this is finally working as it should be. The idea is that the user can choose between multiple databases to search. Each one will be a separate directory similar to |
| @@ -0,0 +1,6 @@ | |||
| <tables> | |||
| <table name="lirasearch" comment_char="#"> | |||
| <columns>value, name, path</columns> | |||
There was a problem hiding this comment.
please add a version column and filter by the version inside you tool ...
This will be good for the future, just imagine you are changing the DB layout, then new tools can only show DB that are fittting with the DB version.
bgruening
left a comment
There was a problem hiding this comment.
looks good, just one small comment
|
@bgruening like so? |
Completely WIP, the tool doesn't even have an official name yet.