IDR / deployment

Deployment infrastructure for the Image Data Resource
https://idr.openmicroscopy.org/about/deployment.html
BSD 2-Clause "Simplified" License
13 stars 14 forks source link

Run searchengine container using a septate playbook #392

Closed khaledk2 closed 1 year ago

khaledk2 commented 1 year ago

This PR is used to run the searchengine container using a separate playbook and can be used to update the searchengine when it is needed. This comes from this discussion https://github.com/IDR/deployment/pull/391#issuecomment-1410024671.

khaledk2 commented 1 year ago

It is a good idea! I have modified it so there is a separate playbook to run and configure each of elasticsearch (idr-elasticsearch.yml) and searchengine (idr-searchengine.yml).

sbesson commented 1 year ago

Thanks @khaledk2, the latest state of the changes look good from a code review perspective. I'll integrate them in the next full deployment.

khaledk2 commented 1 year ago

I have updated the searchengine version to 0.5.1. I think it may be a good idea to update the searchengine manually in prod114 as we do not have time if something goes wrong.

We need first to stop the container

sudo docker stop searchengine

then we need to run the new version using this command:

sudo docker run -d --name searchengine --rm -v /data/searchengine/searchengine/:/etc/searchengine/ --network=searchengine-net -p 5577:5577 openmicroscopy/omero-searchengine:0.5.1 run_app searchengine

I can update it if you do not mind, I have tested it before and it should work fine.

sbesson commented 1 year ago

@khaledk2 go for it and agreed on being cautious for the upcoming release. I'll test this PR with prod115

khaledk2 commented 1 year ago

searchengineversion 0.5.1 has been deployed in prod114.