Skip to content

XDOCKER-87: create image for external SOLR, add example compose file#14

Closed
Mario-Hofstaetter wants to merge 1 commit intoxwiki:masterfrom
Mario-Hofstaetter:XDOCKER-87
Closed

XDOCKER-87: create image for external SOLR, add example compose file#14
Mario-Hofstaetter wants to merge 1 commit intoxwiki:masterfrom
Mario-Hofstaetter:XDOCKER-87

Conversation

@Mario-Hofstaetter
Copy link
Copy Markdown

https://jira.xwiki.org/browse/XDOCKER-87

  • Add dockerfile for /contrib/solr/ . This custom image downloads the correct xwiki-platform-search-solr-server-data.jar , the image uses the latest Apache SOLR image as base

  • Add demo compose file docker-compose-postgres-index.yml, it uses the already existing environment variable INDEX_HOST of the web container. Since it must have the xwiki version, 10.9 has been used for the demo.

Comment thread contrib/solr/Dockerfile

WORKDIR /var/xwiki-solr-temp/

COPY ./solr-init.sh .
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this doing and where is solr-init.sh coming from?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solr-init.sh was already there and has not been changed.
See: https://github.com/xwiki-contrib/docker-xwiki/blob/master/contrib/solr/solr-init.sh
Look into the file, it has comments. It looks for the *.jar and unzips it to /opt/solr/server/solr/

@vmassol
Copy link
Copy Markdown
Member

vmassol commented Nov 22, 2018

Thanks @Mario-Hofstaetter. What about locating the new dockerfile for SOLR in https://github.com/xwiki-contrib/docker-xwiki/tree/master/template instead? And to release it in the official xwiki images?

For that I guess we would need to talk to the official repo guys to add something similar to what we do for the xwiki image at https://github.com/docker-library/official-images/blob/master/library/xwiki

@Mario-Hofstaetter
Copy link
Copy Markdown
Author

Thanks @Mario-Hofstaetter. What about locating the new dockerfile for SOLR in https://github.com/xwiki-contrib/docker-xwiki/tree/master/template instead? And to release it in the official xwiki images?

For that I guess we would need to talk to the official repo guys to add something similar to what we do for the xwiki image at https://github.com/docker-library/official-images/blob/master/library/xwiki

Do as you wish, maybe I need to take a look how this templating works.

@vmassol
Copy link
Copy Markdown
Member

vmassol commented Aug 23, 2019

Superseded by #22

@vmassol vmassol closed this Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants