open-semantic-search icon indicating copy to clipboard operation
open-semantic-search copied to clipboard

OSS Docker setup -how to mount host filesystem

Open hdwinkel opened this issue 2 years ago • 1 comments

I'm just built the OSS with Docker-setup. With some small modification with the Django setup the containers run. What I cannot find is the link in the file-system to let some files be indexed. What container has to propagate what file path to the host in the docker-compose.yml ? Is there any example how to manage?

hdwinkel avatar Apr 10 '22 18:04 hdwinkel

I'm just built the OSS with Docker-setup. With some small modification with the Django setup the containers run. What I cannot find is the link in the file-system to let some files be indexed. What container has to propagate what file path to the host in the docker-compose.yml ? Is there any example how to manage?

As I write in

https://github.com/opensemanticsearch/open-semantic-search/issues/424#issuecomment-1116171863

you can bind host directories to container directories.

The following is not tested in a docker environment, because it did not work for me (what have you done to get it working?). But it works in a "normal" debian virtual machine with installed deb package.

on a super user prompt (I know that is the command listed under Ubuntu, but it works. The command listed under Debian do not work):

apt install ./open-semantic-search_22.03.04.deb

There are some links on the top, that do not work, but indexing works. And also search.

On a prompt enter

opensemanticsearch-index-dir absolute-path

You must use absolute-path, because relative path start an indexing, but later do not work.

It should also be possible to watch on a local directory for changed files. But I do not know if a directory bind with docker is a local directory. I I do not find it in the documentation right now.

BobHamburg avatar May 03 '22 14:05 BobHamburg