##DEPRECATED## There is no need anymore for this image. Knex migration tool is already contained into the ghost base installation and it is actually automatically run by the ghost base image.
This Docker can be used to migrate the Ghost Blog database from a newer version.
git clone https://github.com/mmornati/docker-ghostdbmigrate.git
cd docker-ghostdbmigrate
docker build -t mmornati/docker-ghostdbmigrate .
docker pull mmornati/docker-ghostdbmigrate
docker run -it --rm --name blogmigrate -e NODE_ENV=production -e DB_CURRENT_VERSION=1.0.2 -v /Users/mmornati/ghost-blog-test:/ghost-override mmornati/docker-ghostdbmigrate:v1.8.6
You have to change:
- -v parameter to point to your external/database path
- DB_CURRENT_VERSION variable with the version of ghost you use before the upgrade.