dokku-mongo icon indicating copy to clipboard operation
dokku-mongo copied to clipboard

mongodb plugin upgrade

Open cburkins opened this issue 2 years ago • 4 comments

Thank-you for dokku, very much enjoy using it.

Trying to understand how mongodb plugin gets upgraded. Not the plugin itself, but the mongodb container. Having only recently installed plugin, I'm on v5.0.9 of mongodb.

  • How can I query if new MongoDB versions are available ? Perhaps a dry-run flag ?
  • How is the MongoDB container version chosen ? e.g. I appear to be running v5.0.9, but v5.0.12 is available
  • Does MongoDB get auto-upgraded periodically, or is that my responsibility to trigger manually ?

I tried the upgrade command, but seems to confirm that I'm on the "latest" version

image

cburkins avatar Sep 11 '22 14:09 cburkins

Any ideas on this one ? I'm hoping to proactively understand how mongo:upgrade works (and decides on mongo version).

cburkins avatar Sep 18 '22 19:09 cburkins

The image is set via an env var (in the config file, but overridable). IIRC there are flags for the upgrade command that let you change the image and image version (tag) used to run your database.

We periodically update the image in the plug-in as long as tests pass.

josegonzalez avatar Sep 18 '22 20:09 josegonzalez

@josegonzalez Thanks for the reply. So if I want to (which I don't) hardcode the version of the mongoDB container that I'm using, where would I do that ? And what events would cause dokku to attempt to upgrade the mongoDB container to the "current" (designated ?) version ?

cburkins avatar Sep 18 '22 20:09 cburkins

The container version we use to spawn your container (if it gets destroyed) is stored on disk during service creation iirc. We don't upgrade your version automatically otherwise, even if the version we specify with the plug-in changes.

josegonzalez avatar Sep 18 '22 22:09 josegonzalez

One note for anyone looking to get upgrade notifications - it's worth subscribing to an RSS feed or similar for your datastores and operating systems. This will allow you to better schedule upgrades since you'll at least be notified they exist. Most datastores have a feed, and many chat services (such as slack) have ways to subscribe to them :)

josegonzalez avatar Feb 07 '23 10:02 josegonzalez