openshift


Create app with REST API


I'am using the REST API documentation to create an application with :
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 i want to add my-custum Cartridge not one from the 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 the
Invalid cartridge 'https://raw.githubusercontent.com/smarterclayton/openshift-cdk-cart/master/metadata/manifest.yml' specified."
Any Ideas how to fix this error or Maybe i forget a 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 to supply the [url] after the cartridge parameter, you also need to either point to a manifest.yml file that has the Source-Url element included, or use the cartridge reflector to point to the partial github url with the format user/repo

Related Links

Using Portable git and ssh with Openshift's rhc Windows
How to remove 'Web Load Balancer' from an application on Openshift
Can Node.JS on OpenShift be upgraded?
Openshift not running PHP/MySQL portions of code
Can I modify my openshift git repo using ssh shell?
Openshift haproxy - web-service hibernated
Restore deleted Openshift application
OpenShift Django/Python site cannot be reached ERR_NAME_NOT_RESOLVED
Can I enable HTTP/2 on OpenShift?
rhc Port forwarding error - ruby
Couchbase on Openshift
How to update httpd.conf file in openshift
OPENSHIFT + j_security_check problems
Not able to start node server
No Link to new App
How to host and access murmur (mumble server) on OpenShift without port forwarding?

Categories

HOME
xpath
spring-data
protocol-buffers
android-studio
automapper
mpdf
swi-prolog
ant
facebook-android-sdk
repair
u-boot
wine
live-streaming
mpu6050
google-tasks-api
vmware-workstation
google-cloud-logging
pfobject
opam
data-type-conversion
gollum-wiki
sipp
quartz.net
animated-gif
jpa-2.1
pubxml
xdebug
uilocalnotification
echosign
onchange
sparkle
amazon-iam
memory-fences
fotorama
xmlunit
oauth2
microkernel
word-cloud
virtual-memory
realstudio
intellij-lombok-plugin
gestures
entropy
solr-query-syntax
punctuation
http-basic-authentication
stateless-session-bean
front-camera
pbx
boost-compute
multi-touch
ui4j
phpquery
linuxbrew
largenumber
mousehover
auto-generate
mgwt
password-recovery
smacss
inputbox
xcode6.3.1
distributed-r
git-reset
stripe.net
map
lync-2010
strdup
san
mp4parser
pacman
statechart
unicoins
delphi-xe4
spiral
jbox2d
donut-chart
playorm
clearinterval
getopt-long
play2-mini
directshow.net
mongrel2
active-record-query
odac
aspbutton
getimagesize
rational-unified-process
bucket
powergui
external-sorting
fuzzy-comparison
word-automation

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App