{"id":21383503,"url":"https://github.com/danielbodnar/rancher-spotinst-agent","last_synced_at":"2025-08-10T04:42:45.075Z","repository":{"id":72013159,"uuid":"48896923","full_name":"danielbodnar/rancher-spotinst-agent","owner":"danielbodnar","description":"rancher-agent for RancherOS + SpotInst.com with a #cloud-config user data.","archived":false,"fork":false,"pushed_at":"2016-05-26T15:35:52.000Z","size":16,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T21:44:07.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielbodnar.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-02T03:08:08.000Z","updated_at":"2017-02-23T23:32:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"63174eec-cbc9-41e4-81f4-07808fa48adc","html_url":"https://github.com/danielbodnar/rancher-spotinst-agent","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/danielbodnar/rancher-spotinst-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbodnar%2Francher-spotinst-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbodnar%2Francher-spotinst-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbodnar%2Francher-spotinst-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbodnar%2Francher-spotinst-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielbodnar","download_url":"https://codeload.github.com/danielbodnar/rancher-spotinst-agent/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbodnar%2Francher-spotinst-agent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269677511,"owners_count":24457858,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-22T11:29:34.851Z","updated_at":"2025-08-10T04:42:45.038Z","avatar_url":"https://github.com/danielbodnar.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"The [instructions](http://blog.spotinst.com/2015/11/26/rancher-spotinst-how-integration-works/) spotinst provides is for a shell-based user-data file. I was unable to add a CATTLE_HOST_LABELS environment variable for \"spotinst.instanceId\", using cloud-config / docker-compose yaml syntax on RancherOS.\n\nThis image extends the rancher/agent image and changes the docker ENTRYPOINT to a script that export's the CATTLE_HOST_LABELS environment variable and then executes the previous entrypoint (/run.sh).\n\n### Usage\n\nIf your EC2 AMI ID is a RancherOS AMI, then insert the following into the \"User data\" box on SpotInst's \"3. Compute\" tab.\n\n```\n#cloud-config\nrancher:\n  services:\n    rancher-agent1:\n      image: danielbodnar/rancher-spotinst-agent:v0.8.2\n      command: [insert agent string here. e.g.: http://rancher.domain.com:8080/v1/scripts/[token]]\n      privileged: true\n      volumes:\n        - /var/run/docker.sock:/var/run/docker.sock\n```\n\n\n\n### Building\n\n```\n./build-image.sh v0.8.2 \u0026\u0026 docker push rancher-spotinst-agent [registry]/[username]/rancher-spotinst-agent:v0.8.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbodnar%2Francher-spotinst-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielbodnar%2Francher-spotinst-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbodnar%2Francher-spotinst-agent/lists"}