mercure-imaging / mercure

mercure DICOM Orchestrator
https://mercure-imaging.org
MIT License
65 stars 31 forks source link

Correct way to upgrade? #37

Closed dmd closed 1 year ago

dmd commented 2 years ago

What is the correct way to upgrade to the latest mercure, in docker mode?

For example, simply doing a git checkout to change branch to the latest version and rerunning install.sh does not work - it doesn't update docker-compose.yaml.

dmd commented 1 year ago

I guess this project is dead [again]?

tblock79 commented 1 year ago

This project is not dead. Keep in mind that we are developing it as one of several open-source projects without receiving compensation. Therefore, we have very limited time for providing support to external users, especially on docker-specific aspects.

Questions regarding usage of the software should be posted to the Discussion Board, so that other community members can respond.

dmd commented 1 year ago

We do thank you VERY much for this project. And if there were a way to pay for it - some kind of monthly or yearly support fee - we would be overjoyed to pay it!

RoyWiggins commented 1 year ago

You're correct, there isn't really an official upgrade process documented. It's probably time to fix this, though of course it's always harder to reliably upgrade something than to start from scratch.

Upgrading the docker-compose installation used to be a matter of shutting the service down, copying the new docker-compose.yml over the old one, and starting it again, but the install script now generates a docker-compose file somewhat programmatically. Perhaps we could add a mode to the installer to rebuild the docker-compose file... that might work well enough, but it would discard any intentional customizations made to the docker-compose file, so maybe not ideal.

To do it manually you can open the /opt/mercure/docker-compose.yml and switch the version tags on all the images to the latest release (0.2.2-alpha.2) and then docker-compose down and docker-compose up to recreate the containers with the new image. That should work.

dmd commented 1 year ago

Is there configuration anywhere other than in /opt/mercure/config? Could I just preserve that directory, and wipe everything out and start from scratch and then restore that directory?

RoyWiggins commented 1 year ago

Now I think about it again, it should be sufficient to just delete /opt/mercure/docker-compose.yml and re-run install.sh. It will write the new version of the docker-compose file out and then you can bring the service back up.