Skip to content

Instantly share code, notes, and snippets.

@smarterclayton
Created January 14, 2015 20:45
Show Gist options
  • Save smarterclayton/c137e1f77000b67cff6e to your computer and use it in GitHub Desktop.
Save smarterclayton/c137e1f77000b67cff6e to your computer and use it in GitHub Desktop.
osc example
$ osc new-app openshift/ruby-20-centos~git://github.com/mfojtik/sinatra-app-example --build=source
{
"kind": "List",
"creationTimestamp": null,
"apiVersion": "v1beta1",
"items": [
{
"kind": "ImageRepository",
"apiVersion": "v1beta1",
"metadata": {
"name": "ruby-20-centos",
"creationTimestamp": null
},
"dockerImageRepository": "openshift/ruby-20-centos:latest",
"status": {}
},
{
"kind": "ImageRepository",
"apiVersion": "v1beta1",
"metadata": {
"name": "sinatra-app-example",
"creationTimestamp": null
},
"status": {}
},
{
"kind": "BuildConfig",
"apiVersion": "v1beta1",
"metadata": {
"name": "sinatra-app-example",
"creationTimestamp": null
},
"triggers": [
{
"type": "github",
"github": {
"secret": "616eccd8-215a-4e03-aaf6-af46b4a1e634"
}
},
{
"type": "generic",
"generic": {
"secret": "4ce00c05-b3df-4ba8-b70c-fef905740df7"
}
}
],
"parameters": {
"source": {
"type": "Git",
"git": {
"uri": "git://github.com/mfojtik/sinatra-app-example"
}
},
"strategy": {
"type": "STI",
"stiStrategy": {
"builderImage": "openshift/ruby-20-centos:latest",
"image": "openshift/ruby-20-centos:latest"
}
},
"output": {
"imageTag": "sinatra-app-example:latest"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment