Skip to content

Instantly share code, notes, and snippets.

@jbayer
Created May 10, 2015 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbayer/c266b2ec00bd976481bc to your computer and use it in GitHub Desktop.
Save jbayer/c266b2ec00bd976481bc to your computer and use it in GitHub Desktop.
Lattice with Linux and Windows
[{
"setup": {
"download": {
"from": "http://file_server.service.dc1.consul:8080/v1/static/healthcheck.tgz",
"to": "/tmp",
"cache_key": ""
}
},
"action": {
"run": {
"path": "/lattice-app",
"args": [],
"dir": "/",
"env": null,
"resource_limits": {}
}
},
"monitor": {
"run": {
"path": "/tmp/healthcheck",
"args": ["-port", "8080"],
"env": null,
"resource_limits": {},
"log_source": "HEALTH"
}
},
"process_guid": "lattice-app",
"domain": "lattice",
"rootfs": "docker:///cloudfoundry/lattice-app#latest",
"instances": 1,
"env": [{
"name": "PROCESS_GUID",
"value": "lattice-app"
}, {
"name": "PORT",
"value": "8080"
}],
"start_timeout": 0,
"disk_mb": 1024,
"memory_mb": 128,
"cpu_weight": 100,
"privileged": true,
"ports": [8080],
"routes": {
"cf-router": [{
"hostnames": ["lattice-app.lattice.zy.vc", "lattice-app-8080.lattice.zy.vc"],
"port": 8080
}]
},
"log_guid": "lattice-app",
"log_source": "APP",
"metrics_guid": "lattice-app",
"modification_tag": {
"epoch": "460d0540-5bf9-4e45-5d86-6f36b0763b45",
"index": 0
}
}, {
"setup": {
"serial": {
"actions": [{
"download": {
"from": "https://s3.amazonaws.com/kropf/windows_app_lifecycle.tgz",
"to": "/tmp/lifecycle",
"cache_key": ""
}
}, {
"download": {
"from": "https://s3.amazonaws.com/kropf/nora.tgz",
"to": ".",
"cache_key": ""
}
}]
}
},
"action": {
"run": {
"path": "/tmp/lifecycle/launcher",
"args": ["app", "", "{\"start_command\":\"tmp/lifecycle/WebAppServer.exe\",\"start_command_args\":[\".\"]}"],
"env": [{
"name": "PROCESS_GUID",
"value": "nora-app"
}, {
"name": "PORT",
"value": "8080"
}],
"resource_limits": {},
"log_source": "APP"
}
},
"monitor": {
"timeout": {
"action": {
"run": {
"path": "/tmp/lifecycle/healthcheck",
"args": ["-port=8080"],
"env": null,
"resource_limits": {},
"log_source": "HEALTH"
}
},
"timeout": 30000000000
}
},
"process_guid": "nora-app",
"domain": "lattice",
"rootfs": "preloaded:windows2012R2",
"instances": 1,
"env": [{
"name": "PROCESS_GUID",
"value": "nora-app"
}, {
"name": "PORT",
"value": "8080"
}],
"start_timeout": 60,
"disk_mb": 1024,
"memory_mb": 1024,
"cpu_weight": 10,
"privileged": true,
"ports": [8080],
"routes": {
"cf-router": [{
"hostnames": ["nora-app.lattice.zy.vc"],
"port": 8080
}]
},
"log_guid": "nora-app",
"log_source": "APP",
"metrics_guid": "nora-app",
"annotation": "1428353605.613782",
"modification_tag": {
"epoch": "acb58130-0fd6-4290-75db-3c1bcd138ec3",
"index": 0
}
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment