New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the correct way to upgrade the plugin and mongodb. #74

Closed
dblock opened this Issue Sep 2, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@dblock
Copy link

dblock commented Sep 2, 2016

What's the correct way to upgrade the plugin and mongodb inside all/each container?

@josegonzalez

This comment has been minimized.

Copy link
Member

josegonzalez commented Sep 13, 2016

Cry.

Depends on the versions you are upgrading between. I think minor/patch should be something like:

dokku mongo:stop SERVICE
docker rm $(dokku mongo:info SERVICE --id)
MONGO_IMAGE_VERSION=derp dokku mongo:start SERVICE

If you need more than that, I'd checkout the upgrade docs from mongo. You should be able to export your data and import it elsewhere. I haven't used Mongo in a while, so ymmv.

@dblock

This comment has been minimized.

Copy link

dblock commented Sep 13, 2016

I feel like this should be reopened. I am a noob when it comes to dokku/docker (and therefore I use dokku) so it's hard to know where to start or what derp is ;) For the actual mongodb part we can leave it as "check the mongodb docs".

I will try to contribute the doc, but no promises ;)

@josegonzalez josegonzalez reopened this Sep 13, 2016

@josegonzalez

This comment has been minimized.

Copy link
Member

josegonzalez commented Sep 13, 2016

Derp is the image version. Our default is here, and currently 3.2.9. The image version is quite literally the docker image version, as listed here.

If you can contribute doc updates for this by end of week, great, otherwise I'll close it again.

@figalex

This comment has been minimized.

Copy link

figalex commented Sep 30, 2016

How can I now which version of the plugin I have and how can I upgrade the plugin? The version I have installed by default was using MongoDB 3.2.1, I was able to use a later version of Mongo but only destroying and recreating a database. I would like to upgrade the plugin.

@josegonzalez

This comment has been minimized.

Copy link
Member

josegonzalez commented Aug 26, 2017

The plugin itself doesn't currently have a defined version, though once we start versioning (soonish) it'll be from:

dokku plugin:list
@dblock

This comment has been minimized.

Copy link

dblock commented Jul 27, 2018

This worked from 3.2.9 to 3.4.9. I first ran dokku plugin:mongo update then what's above.

dokku mongo:stop 33-minutes
=====> Stopping container
       Container stopped
root@dblock-plum:/var/log/dokku# dokku mongo:info 33-minutes --id
6a56353106a3c3559e62b29f447891239dc82fa4166d711dc41cdf9051bd8b4c
root@dblock-plum:/var/log/dokku# docker rm 6a56353106a3c3559e62b29f447891239dc82fa4166d711dc41cdf9051bd8b4c
6a56353106a3c3559e62b29f447891239dc82fa4166d711dc41cdf9051bd8b4c
root@dblock-plum:/var/log/dokku# MONGO_IMAGE_VERSION=3.4.9 dokku mongo:start 33-minutes
=====> Starting container
       Waiting for container to be ready

Published https://code.dblock.org/2018/07/27/installing-and-upgrading-mongodb-in-dokku.html, hope this helps someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment