dokku / dokku-mongo

a mongo plugin for dokku
MIT License
174 stars 32 forks source link

mongodb plugin upgrade #158

Closed cburkins closed 1 year ago

cburkins commented 2 years ago

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.

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

image
cburkins commented 2 years ago

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

josegonzalez commented 2 years ago

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.

cburkins commented 2 years ago

@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 ?

josegonzalez commented 2 years ago

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 commented 1 year ago

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 :)