openshift - Create app with REST API -
i'am using rest api documentation create application :
curl -k -x post https://openshift.redhat.com/broker/rest/domains/[domain_id]/applications --user "[username]:[password]" --data "name=[appname]&cartridge=php-5.3&scale=false"
but want add my-custum cartridge not 1 valid options : nodejs-0.6; jbossas-7; python-2.6; jenkins-1.4; ruby-1.8; diy-0.1; php-5.3; perl-5.10.
curl -k -x post https://openshift.redhat.com/broker/rest/domains/mydomain/applications --user "aa@y.com:xxx" --data "name=openerpdrupal&cartridge=https://raw.githubusercontent.com/smarterclayton/openshift-cdk-cart/master/metadata/manifest.yml"
it's give me
invalid cartridge 'https://raw.githubusercontent.com/smarterclayton/openshift-cdk-cart/master/metadata/manifest.yml' specified."
any ideas how fix error or maybe forget step ?
thanks
this should work:
curl -k -x post https://openshift.redhat.com/broker/rest/domains/jhaopenshift/applications --user "user:pass" --data "name=myapp&cartridge[url]=https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-cdk-cart&scale=false"
you need supply [url] after cartridge parameter, need either point manifest.yml file has source-url element included, or use cartridge reflector point partial github url format user/repo
Comments
Post a Comment