dokku / dokku-mongo

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

How do I update to latest mongo? #116

Closed BigWillie closed 4 years ago

BigWillie commented 5 years ago

Installed this plugin last night. How do I update each database to mongo-db 4? Thanks

devniel commented 5 years ago

According to the docs, I think that you need to specify it via env variables, I think that dokku will search it on docker hub :

# you can also specify the image and image
# version to use for the service
# it *must* be compatible with the
# official mongo image
export MONGO_IMAGE="mongo"
export MONGO_IMAGE_VERSION="3.0.5"
dokku mongo:create lolipop
josegonzalez commented 5 years ago

You may also wish to look at the output of:

dokku mongo:help create

Which should show you options for installing with flags.

jc-camosun commented 4 years ago

How do you do this in a CI file? For example, in my GitLab CI file I have: - ssh dokku@$DEPLOY_SRV config:set --global MONGO_IMAGE_VERSION="4.2.3" But it doesn't work.

josegonzalez commented 4 years ago

@jc-camosun did you check out the output of dokku mongo:help create?

jc-camosun commented 4 years ago

My apologies @josegonzalez. I somehow missed the flags. -I does indeed work.

josegonzalez commented 4 years ago

Glad that works :)