dice-group / Palmetto

Palmetto is a quality measuring tool for topics
GNU Affero General Public License v3.0
209 stars 36 forks source link

include own index in docker #16

Closed vdyke closed 1 year ago

vdyke commented 6 years ago

Hi @MichaelRoeder,

I try to use the palmetto-py wrapper in combination with the Palmetto docker image and my own index. I had two issues and wanted to get sure, that my modifications have no negative consequences:

1.Dockerfile: Building the dockerfile results in the following error:

openjdk-8-jdk : Depends: openjdk-8-jre (= 8u131-b11-1~bpo8+1) but it is not going to be installed
                 Depends: openjdk-8-jdk-headless (= 8u131-b11-1~bpo8+1) but it is not going to be installed

I "fixed" this issue by building from tomcat:8.0.47-jre8 instead of tomcat:8.0.36-jre8.

2.Including own index in docker container: To use my own index I had to rename my indexes-folder analogous to the wikipedia-index:

    wikipedia_bd/
    wikipedia_bd.histogram

Now it seems to work but I'm not sure whether I will run into some other issues. Is there an official way to include own indexes in docker?

Thank you a lot!

MichaelRoeder commented 6 years ago

You did everything correct :+1:

1. Dockerfile

There should be no problem after updating to a newer tomcat 8 version.

2. Including own index in docker container

I am sorry that you had to figure out that you need to rename your index. I have created an issue that should make this easier (#17). As long as your image is a position storing index (as described at https://github.com/dice-group/Palmetto/wiki/How-to-create-a-new-index#create-a-position-storing-index), the image should work fine.

Thanks for pointing out these issues.

MichaelRoeder commented 1 year ago

Finally, this problem has been fixed. A description is available at https://github.com/dice-group/Palmetto/wiki/How-Palmetto-can-be-used#configuration