0.1-dev
It's simple...I want to learn Docker SDK and improve/learn my Python knownledge.
Edit and modify conf.json
with the required data:
- DBDumpFile = the dump file (local and with .sql extension) of your old DB
- DBUser = user of your DB in Docker container
- DBPass = the password of DBUser in Docker container
- DBName = the name of DB to import in Docker container
- DBDocker = the name of Docker Container
and launch it:
./mygrate.py
Docker...of course...and two python package: magic & docker
pip install docker
pip install magic
Matteo Basso - matteo (dot) basso (at) gmail (dot) com
This software is licensed under GPL v3 license.
Copyright (c) 2017 Matteo Basso
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You can read the full text of the GNU General Public License version 3 here.