-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to use Docker volume for Solr files #437
Comments
I am investigating it. The difficulty I see here is that this directory might need some configuration files populated, e.g. the |
Attention: files created with |
Currently, all Solr data is lost when the container is stopped and removed, eg. by executing |
How about using a separate container for Solr from the official image rather than manually install it in the same container? This way it is easier to persist data on the host. The
However, the indexing scripts have to be adapted in order to talk to the Solr container (not localhost). |
Using the official Solr Docker image would also decrease image sizes and thus speed up build process. |
@nichtich @Phu2 Many thanks for the ideas and code! I've started to implement it. I will ping you again when it will be testable at least in a branch. I think there will be 3 docker container:
We also need a volume that is shared between the last two containers, and we should add environment variables of the URLs of the components |
@nichtich @Phu2 I run into a problem and I ask your opinion about that.
QA catalogue so far utilizes the later method, but it does not specify If we try to create a new core with the API, it thows an error message and it does not complete successfully:
I can see several possible solutions:
The questions:
|
Just for later reference here are some links:
|
The Solr directory of databases (I think
/opt/solr/server/solr
) should be mountable when starting the solr container so the Solr index can be kept outside of Docker container.The text was updated successfully, but these errors were encountered: