First commit

This commit is contained in:
Joe Beda
2014-06-06 16:40:48 -07:00
commit 2c4b3a562c
250 changed files with 47501 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{
"items": [
{
"id": "testRun",
"desiredState": {
"replicas": 2,
"replicasInSet": {
"name": "testRun"
},
"taskTemplate": {
"desiredState": {
"image": "dockerfile/nginx",
"networkPorts": [
{
"hostPort": 8080,
"containerPort": 80
}
]
},
"labels": {
"name": "testRun"
}
}
},
"labels": {
"name": "testRun"
}
}
]
}

View File

@@ -0,0 +1,18 @@
{
"id": "nginxController",
"desiredState": {
"replicas": 2,
"replicasInSet": {"name": "nginx"},
"taskTemplate": {
"desiredState": {
"manifest": {
"containers": [{
"image": "dockerfile/nginx",
"ports": [{"containerPort": 80, "hostPort": 8080}]
}]
}
},
"labels": {"name": "nginx"}
}},
"labels": {"name": "nginx"}
}

View File

@@ -0,0 +1,19 @@
{
"items": [
{
"id": "example1",
"port": 8000,
"labels": {
"name": "nginx"
}
},
{
"id": "example2",
"port": 8080,
"labels": {
"env": "prod",
"name": "jetty"
}
}
]
}

View File

@@ -0,0 +1,7 @@
{
"id": "example2",
"port": 8000,
"labels": {
"name": "nginx"
}
}

View File

@@ -0,0 +1,46 @@
{
"items": [
{
"id": "my-task-1",
"labels": {
"name": "testRun",
"replicationController": "testRun"
},
"desiredState": {
"manifest": {
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
"hostPort": 8080,
"containerPort": 80
}]
}
}
},
"currentState": {
"host": "host-1"
}
},
{
"id": "my-task-2",
"labels": {
"name": "testRun",
"replicationController": "testRun"
},
"desiredState": {
"manifest": {
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
"hostPort": 8080,
"containerPort": 80
}]
}
}
},
"currentState": {
"host": "host-2"
}
}
]
}

18
api/examples/task.json Normal file
View File

@@ -0,0 +1,18 @@
{
"id": "php",
"desiredState": {
"manifest": {
"containers": [{
"image": "dockerfile/nginx",
"ports": [{
"containerPort": 80,
"hostPort": 8080
}]
}]
}
},
"labels": {
"name": "foo"
}
}