{
  "id": "/calico-stars",
  "apps": [
    {
      "id": "management-ui",
      "uris": ["https://raw.githubusercontent.com/projectcalico/calico-containers/master/mesos/stars-demo/calico-stars-resources.json"],
      "cmd": "/star/target/debug/star-collect --resources-file=$MESOS_SANDBOX/calico-stars-resources.json",
      "mem": 64.0,
      "ipAddress": {
        "discovery": {
          "ports": [{ "number": 9001, "name": "http", "protocol": "tcp" }]
        }
      },
      "container": {
        "type": "DOCKER",
        "docker": {
          "image": "djosborne/star:v0.5.0",
          "network": "BRIDGE",
          "parameters": [
            { "key": "net", "value": "management-ui" },
            { "key": "ip", "value": "192.168.255.254" }
          ]
        }
      },
      "labels":{
        "HAPROXY_GROUP": "external",
        "HAPROXY_0_VHOST": "my.marathon.app"
      }
    },
    {
      "id": "client",
      "cmd": "/star/target/debug/star-probe --urls=http://frontend-calico-stars.marathon.mesos:9000/status,http://backend-calico-stars.marathon.mesos:9000/status",
      "cpus": 0.1,
      "mem": 64.0,
      "container": {
        "type": "DOCKER",
        "docker": {
          "image": "djosborne/star:v0.5.0",
          "parameters": [
            { "key": "net", "value": "client" }
          ]
        }
      }
    },
    {
      "id": "frontend",
      "cmd": "/star/target/debug/star-probe --urls=http://client-calico-stars.marathon.mesos:9000/status,http://backend-calico-stars.marathon.mesos:9000/status",
      "cpus": 0.1,
      "mem": 64.0,
      "container": {
        "type": "DOCKER",
        "docker": {
          "image": "djosborne/star:v0.5.0",
          "parameters": [
            { "key": "net", "value": "frontend" }
          ]
        }
      }
    },
    {
      "id": "backend",
      "cmd": "/star/target/debug/star-probe --urls=http://client-calico-stars.marathon.mesos:9000/status,http://frontend-calico-stars.marathon.mesos:9000/status",
      "cpus": 0.1,
      "mem": 64.0,
      "container": {
        "type": "DOCKER",
        "docker": {
          "image": "djosborne/star:v0.5.0",
          "parameters": [
            { "key": "net", "value": "backend" }
          ]
        }
      }
    }
  ]
}
