TugboatQA / docs

Tugboat Docs
https://docs.tugboat.qa
MIT License
9 stars 18 forks source link

Solr instructions do not work with newer versions of the solr image #341

Closed johnzzon closed 1 year ago

johnzzon commented 1 year ago

When using tugboatqa/solr:8 (which I think is 8.11.2 at the time of writing), the instructions documented on https://docs.tugboatqa.com/reference/tugboat-images/#solr does not work.

It's specifically the command:

su -s /bin/sh -c "solr create_core -c [CORE] -force" solr

which generates an error "solr not found"

When debugging this it seems the solr user does not have solr in its $PATH. Using the absolute path to the solr binary works.

q0rban commented 1 year ago

Thanks for reporting this, @johnzzon ! Do you happen to know what the absolute path to the solr binary is, so we can create a PR to get this fixed?

johnzzon commented 1 year ago

Absolutely, @q0rban

The binary was at /opt/solr/bin/solr.

q0rban commented 1 year ago

@johnzzon I've got a PR here: #346 , does this look like the correct fix?

johnzzon commented 1 year ago

@q0rban Yep, that looks just like what I used!