Last active
August 29, 2015 14:11
-
-
Save jewzaam/6b6ac2a66fd73971b5ab to your computer and use it in GitHub Desktop.
deploy openshift-lightblue-cart via REST API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setup | |
OS_USERNAME=<user> | |
OS_PASSWORD=<password> | |
OS_GEAR_SIZE="medium" | |
# verify you can get application list | |
curl -k -X GET https://openshift.redhat.com/broker/rest/domain/lightblue/applications --user $OS_USERNAME:$OS_PASSWORD | |
# delete existing app, get ID from app list above | |
curl -k -X DELETE https://openshift.redhat.com/broker/rest/application/<ID> --user $OS_USERNAME:$OS_PASSWORD | |
# create new application called 'citest' | |
curl -k -X POST https://openshift.redhat.com/broker/rest/domain/lightblue/applications \ | |
--data-urlencode name=citest \ | |
--data-urlencode cartridges[][url]=https://raw.githubusercontent.com/jewzaam/openshift-lightblue-cart/master/metadata/manifest.yml \ | |
--data-urlencode scale=false \ | |
--data-urlencode gear_size=$OS_GEAR_SIZE \ | |
--user $OS_USERNAME:$OS_PASSWORD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note the gear size selected is 'medium'.