{"id":23039640,"url":"https://github.com/ckaznocha/marathon-resource","last_synced_at":"2025-08-14T20:30:42.382Z","repository":{"id":80511450,"uuid":"66163887","full_name":"ckaznocha/marathon-resource","owner":"ckaznocha","description":"A Concourse resource to deploy applications to Marathon.","archived":false,"fork":false,"pushed_at":"2017-02-15T16:40:15.000Z","size":693,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-14T21:40:04.255Z","etag":null,"topics":["concourse","concourse-ci","concourse-ci-resource","concourse-resource","continuous-deployment","continuous-integration","marathon"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ckaznocha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-20T19:15:33.000Z","updated_at":"2022-05-31T08:05:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"7428ae6d-f2b7-4bb1-80c3-f797a1abff0b","html_url":"https://github.com/ckaznocha/marathon-resource","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fmarathon-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fmarathon-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fmarathon-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckaznocha%2Fmarathon-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckaznocha","download_url":"https://codeload.github.com/ckaznocha/marathon-resource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229862101,"owners_count":18135886,"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":["concourse","concourse-ci","concourse-ci-resource","concourse-resource","continuous-deployment","continuous-integration","marathon"],"created_at":"2024-12-15T18:36:24.092Z","updated_at":"2024-12-15T18:36:24.974Z","avatar_url":"https://github.com/ckaznocha.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Marathon Resource\n\n\n[![Build Status](https://travis-ci.org/ckaznocha/marathon-resource.svg?branch=master)](https://travis-ci.org/ckaznocha/marathon-resource)\n[![Coverage Status](https://coveralls.io/repos/github/ckaznocha/marathon-resource/badge.svg?branch=master)](https://coveralls.io/github/ckaznocha/marathon-resource?branch=master)\n[![Code Climate](https://codeclimate.com/github/ckaznocha/marathon-resource/badges/gpa.svg)](https://codeclimate.com/github/ckaznocha/marathon-resource)\n[![License](http://img.shields.io/:license-mit-blue.svg)](http://ckaznocha.mit-license.org)\n[![Go Report Card](https://goreportcard.com/badge/ckaznocha/marathon-resource)](https://goreportcard.com/report/ckaznocha/marathon-resource)\n[![Docker Pulls](https://img.shields.io/docker/pulls/ckaznocha/marathon-resource.svg?maxAge=2592000)](https://hub.docker.com/r/ckaznocha/marathon-resource/)\n\nA [Concourse](https://concourse.ci/) resource to deploy applications to [Marathon](https://mesosphere.github.io/marathon/).\n\n## Source Configuration\n\n*   `app_id`: *Required.* The name of your app in Marathon.\n\n*   `uri`: *Required.* The URI of the Marathon instance you wish to deploy to.\n\n*   `basic_auth`: *Optional.* Use if you are using HTTP Basic Auth to protect your Marathon instance. Takes `user_name` and `password`\n\n*   `api_token`: *Optional.* Use if you are using DC/OS and need to set an HTTP API token.\n\n## Behavior\n\n### `check`: Extract versions of an app from Marathon.\n\nReturns a list of any versions greater than or equal the last know version of the app defined by `app_id`.\n\n### `in`: Fetch data about the current version of an app.\n\nReturns JSON description of the current running version of the app.\n\n#### Parameters\n\n*None.*\n\n\n### `out`: Deploy an app to Marathon.\n\nGiven a JSON file specified by `app_json`, post it to Marathon to deploy the app. The resource will cancel the deployment if its not successful after `time_out`.\n\n#### Parameters\n\n*   `app_json`: *Required.* Path to the JSON file describing your marathon app. For more information about the format see [the Marathon docs](https://mesosphere.github.io/marathon/docs/application-basics.html).\n\n*   `time_out`: *Required.* How long, in seconds, to wait for Marathon to deploy the app. Timed out deployments will roll back and fail the job.\n\n*   `replacements`: *Optional.* A `name`/`value` list of templated strings in the app.json to replace during the deploy. Useful for things such as passwords or urls that change.\n\n*   `replacement_files`: *Optional.* Similar to `replacements` except value is a path to a file who's content will be used in the replace.\n\n*   `restart_if_no_update`: *Optional.* If Marathon doesn't detect any change in your app.json it won't deploy a new version. Setting this to `true` will restart an existing app causing a new version. Default is `false`.\n\n## Example Configuration\n\n### Resource type\n\n``` yaml\n- name: marathon\n  type: docker-image\n  source:\n    repository: ckaznocha/marathon-resource\n```\n\n### Resource\n\n``` yaml\n- name: marathon_app\n  type: marathon\n  source:\n    app_id: my_app\n    uri: http://my-marathon.com/\n    basic_auth:\n      user_name: my_name\n      password: {{ marathon_password }}\n```\n\n### Plan\n\n``` yaml\n- get: marathon_app\n```\n\n``` yaml\n- put: marathon_app\n  params:\n    app_json: path/to/app.json\n    time_out: 10\n    replacements:\n    - name: db_password\n      value: {{ db_password }}\n    - name: db_url\n      value: {{ db_url }}\n```\n\n## Contributing\n\nSee the `CONTRIBUTING` file.\n\n## License\nSee `LICENSE` file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckaznocha%2Fmarathon-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckaznocha%2Fmarathon-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckaznocha%2Fmarathon-resource/lists"}