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

Off-PaaS development environment for OpenShift
Open shift Auto scaling
Using OpenShift for non-web application?
openshift piwik quickstart
Openshift, can't restart application “Another operation is already running”
Unable to Deploye War file on OpenShipt
How can I deploy a resource file to scaled gears?
Openshift Gear performance, IOWAIT
openshift CNAME for .tk
OpenShift DIY cartridge and LEMP installation
How to get correct connection info for redis cartridge?
How to browse user generated folder in Openshift?
How best to deploy this multi-tier app?
Openshift first steps
503 Service Temporarily Unavailable when i launching my website at openshift
OpenShift: Corn job script to backup mysql and email the backup file

Categories

HOME
opengl
svn
weblogic12c
windows-8.1
livecode
antd
slider
haxe
static-analysis
scheduler
kurento
lc3
fasm
smooks
live-streaming
trace32
bnf
renderscript
multiple-tables
adminlte
opam
weex
bosun
coreldraw
batch-rename
rxjs5
animated-gif
function-points
mod-wsgi
clipboard
math.js
sparkle
fatfs
substance
toad
winsock
phpstorm-2016.1
infopath2010
markov-chains
express-session
buildforge
landscape
runtimeexception
jade4j
macports
text-decorations
reset
export-to-pdf
flowchart
newtons-method
viewcontroller
fiware-wirecloud
spooler
autorelease
lightning-workbench
winston
line-intersection
sequence-diagram
glassfish-4.1
polymaps
gmaps.js
pbx
java-2d
nclam
msbuild-4.0
mathml
timestamping
swiffy
verisign
preferenceactivity
wif4.5
http.client
sqlbase
artisan
kefir.js
wicked-gem
azure-xplat-cli
phonegap-facebook-plugin
dos2unix
rubber
oracle-adf-mobile
xcode6.3.1
webautomation
bittorrent-sync
lsa
proxy-server
smips
rautomation
disjoint-union
acceptance-testing
flv
background-thread
android-authenticator
django-filebrowser
email-verification
nsmutablestring
flymake
fitch-proofs
quartz-core
expression-web
net-use
winsxs
directshow.net
airprint
solandra
aspbutton
eventaggregator
source-code-protection
fxruby
remote-working
code-camp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App