{"id":16476335,"url":"https://github.com/softprops/track-jacket","last_synced_at":"2025-04-04T17:24:40.531Z","repository":{"id":11337212,"uuid":"13763748","full_name":"softprops/track-jacket","owner":"softprops","description":"A slimly outfitted interface for getting your app up and running with marathon","archived":false,"fork":false,"pushed_at":"2014-08-21T12:45:27.000Z","size":244,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T12:00:03.815Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softprops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-22T05:13:53.000Z","updated_at":"2021-07-07T11:17:22.000Z","dependencies_parsed_at":"2022-08-20T15:50:17.188Z","dependency_job_id":null,"html_url":"https://github.com/softprops/track-jacket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftrack-jacket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftrack-jacket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftrack-jacket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softprops%2Ftrack-jacket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softprops","download_url":"https://codeload.github.com/softprops/track-jacket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247218615,"owners_count":20903267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T12:42:05.944Z","updated_at":"2025-04-04T17:24:40.512Z","avatar_url":"https://github.com/softprops.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# track jacket\n\nA slimly outfitted interface for getting your app up and running with [marathon](https://github.com/mesosphere/marathon#readme)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http://f.cl.ly/items/3910290t2m2J1f222z2W/il_570xN.515783795_c2ib.jpg\" style=\"height:600px\"/\u003e\u003c/p\u003e\n\n## usage\n\n```scala\nimport trackjacket._\nimport dispatch._\n\nval cli = Client()\nval start =\n (cli.start(\"my_app\")\n  .cmd(\"java -jar app-1.0.jar\")\n  .uris(\"/path/to/app-1.0.jar\")\n  .cpus(4) \n  .instances(4)\n  .env(\"env\" -\u003e \"prod\")()).either\nfor (_ \u003c- start.right) yield println(\"off you go\")\nfor (_ \u003c- start.left) yield println(\"whooa nelly\")\n(for { js \u003c- cli.apps(as.json4s.Json) } yield {\n  for {\n    JArray(apps)                   \u003c- js\n    JObject(app)                   \u003c- apps\n    (\"id\", JString(id))            \u003c- app\n    (\"instances\", JInt(instances)) \u003c- app\n  } yield {\n    log.info(s\"service: $id instances requested: $instances\")\n    for (ejs \u003c- cli.endpoint(id)(as.json4s.Json)) yield {\n      for {\n        JObject(endpoint) \u003c- ejs\n        (\"instances\", JArray(instances))  \u003c- endpoint\n        JObject(instance)                 \u003c- instances\n        (\"host\", JString(host))           \u003c- instance\n        (\"ports\", JArray(JInt(port) :: _)) \u003c- instance\n      } yield {\n      log.info(s\"✈ $host:$port\")\n    }\n   }.apply()\n  }.apply()\n})\n```\n\nDoug Tangren (softprops) 2013\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Ftrack-jacket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftprops%2Ftrack-jacket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftprops%2Ftrack-jacket/lists"}