|
Here's a quick overview of the cartridge changes that will be needed:
-
The binaries for the migration tool will need to be added to the cartridge repository (e.g., in versions/1.0.3/usr/lib/migration/).
-
The binaries for the migration tool will need to be installed on the gear (e.g., in $OPENSHIFT_AEROGEAR_PUSH_DIR/usr/lib/migration). This will need to be done in the cartridge's install script.
-
The migration tool will need to be invoked from an action hook in the cartridge's control script.
Once the above changes have been made, they can be tested using the following commands:
rhc snapshot save <APP>
|
rhc app delete <APP>
|
rhc create-app --no-git <APP> <CARTRIDGE_URL>
|
rhc snapshot restore <APP> -f /PATH/TO/APP.tar.gz
|
|