From 8f97e065b0fb0fa0eea7304b4c7196e52950dc16 Mon Sep 17 00:00:00 2001 From: Charlton Austin Date: Wed, 18 Jan 2017 16:16:45 -0500 Subject: [PATCH] Adding in a description on how to run migrations against remote machines. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 2c90badcd..d8d0b4136 100644 --- a/README.md +++ b/README.md @@ -288,6 +288,22 @@ python initdb.py ``` +### Running tests for migrations + +Use AWS/RDS to create a test image. +To create a new database from a snapshot to test against see +[this](http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_RestoreFromSnapshot.html). + +Then point the migrations to the new instance using +quay-config/local/config.yaml + +Remember to run this from the root of the quay directory and to set your +python environment first. + +``` +PYTHONPATH=. alembic upgrade head +``` + ### How to run a build with tests for a push or merge ``` # Inside the quay directory.