took out remove orphans because it will killing the trafficops_db as well
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/0253724b Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/0253724b Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/0253724b Branch: refs/heads/master Commit: 0253724b851789de965b56e6b0ce0f2c5927cb39 Parents: 5ca3053 Author: Dewayne Richardson <dewr...@apache.org> Authored: Mon Jan 30 10:32:19 2017 -0700 Committer: Jeremy Mitchell <mitchell...@gmail.com> Committed: Mon Jan 30 10:58:07 2017 -0700 ---------------------------------------------------------------------- traffic_ops/app/db/pg-migration/migrate.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/0253724b/traffic_ops/app/db/pg-migration/migrate.sh ---------------------------------------------------------------------- diff --git a/traffic_ops/app/db/pg-migration/migrate.sh b/traffic_ops/app/db/pg-migration/migrate.sh index eb08f65..f2ee69e 100755 --- a/traffic_ops/app/db/pg-migration/migrate.sh +++ b/traffic_ops/app/db/pg-migration/migrate.sh @@ -90,19 +90,20 @@ function clean() { echo "Cleaning up..." echo $separator #docker kill trafficops_mysql_host_1 - docker-compose -p trafficops -f mysql-to-postgres.yml down --remove-orphans - docker-compose -p trafficops -f convert.yml down --remove-orphans + docker-compose -p trafficops -f mysql-to-postgres.yml down + docker-compose -p trafficops -f convert.yml down #docker rm trafficops_mysql-to-postgres_1 #docker rm trafficops_convert_1 #docker rm trafficops_mysql_host_1 docker rmi trafficops_mysql-to-postgres docker rmi trafficops_convert - docker rmi trafficops_mysql_host - docker rmi trafficops_waiter docker rmi mysql:5.6 docker rmi dimitri/pgloader:latest + docker rmi trafficops_mysql_host --force + docker rmi trafficops_waiter --force } +clean start_staging_mysql_server #display_env migrate_data_from_mysql_to_postgres