{"id":20464333,"url":"https://github.com/osl-incubator/github-actions-self-hosted-runner","last_synced_at":"2025-07-16T11:33:35.817Z","repository":{"id":181944538,"uuid":"667682151","full_name":"osl-incubator/github-actions-self-hosted-runner","owner":"osl-incubator","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-24T12:42:58.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T12:22:43.563Z","etag":null,"topics":["ci","github-actions-runner","lifecycle-maintenance","self-hosted"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/osl-incubator.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":"2023-07-18T04:34:43.000Z","updated_at":"2025-01-24T12:43:02.000Z","dependencies_parsed_at":"2025-01-16T01:12:22.443Z","dependency_job_id":"8a0f9dce-da23-4b65-a5c9-670b3e4e84be","html_url":"https://github.com/osl-incubator/github-actions-self-hosted-runner","commit_stats":null,"previous_names":["xmnlab/github-actions-self-hosted-runner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osl-incubator/github-actions-self-hosted-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osl-incubator%2Fgithub-actions-self-hosted-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osl-incubator%2Fgithub-actions-self-hosted-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osl-incubator%2Fgithub-actions-self-hosted-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osl-incubator%2Fgithub-actions-self-hosted-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osl-incubator","download_url":"https://codeload.github.com/osl-incubator/github-actions-self-hosted-runner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osl-incubator%2Fgithub-actions-self-hosted-runner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265506119,"owners_count":23778659,"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":["ci","github-actions-runner","lifecycle-maintenance","self-hosted"],"created_at":"2024-11-15T13:14:43.627Z","updated_at":"2025-07-16T11:33:35.736Z","avatar_url":"https://github.com/osl-incubator.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Containerize a GitHub Actions self-hosted runner\n\nThis is a project heavily based on https://github.com/beikeni/github-runner-dockerfile\nThe main difference is that it allows a more flexible approach to define the docker-compose.yaml file.\n\nIt is necessary to create a .env file with the desired environment variables:\n\n```bash\n$ envsubst \u003c .env.tpl \u003e .env\n```\n\nChange the values in .env to the values you need for your docker-compose file.\n\n```bash\n$ ./create-compose-file.sh\n```\n\nRun `docker compose` with the .env you just created:\n\n```\n$ docker compose --env-file .env build\n```\n\nYou can also use `make` to call the following targets: `build`, `start`, and `stop`.\nIt will automatically run docker compose with the dotenv file and call its subcommand properly.\n\nIn order to allow the Docker stack inside the GitHub Runner (that will be running as a Docker Contaienr), \nwe need to use it with sysbox.\n\nIf you need to run it in a brand-new server, maybe you will need to follow the steps below:\n\n* [Install Docker](https://docs.docker.com/engine/install)\n* [Configure Docker as rootless](https://docs.docker.com/engine/install/linux-postinstall/)\n* [Install sysbox](https://github.com/nestybox/sysbox/blob/master/docs/user-guide/install-package.md)\n* [Add sysbox as the default runtime](https://github.com/nestybox/sysbox/blob/master/docs/user-guide/install-package.md#configuring-dockers-default-runtime-to-sysbox)\n\n\n## References\n\n* https://baccini-al.medium.com/how-to-containerize-a-github-actions-self-hosted-runner-5994cc08b9fb\n* https://github.com/beikeni/github-runner-dockerfile\n* https://github.com/nestybox/sysbox#installing-sysbox\n* https://github.com/PasseiDireto/gh-runner\n* https://github.com/nestybox/sysbox/blob/master/docs/user-guide/install-package.md\n* https://github.com/nestybox/sysbox/blob/master/docs/user-guide/install-package.md#configuring-dockers-default-runtime-to-sysbox\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosl-incubator%2Fgithub-actions-self-hosted-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosl-incubator%2Fgithub-actions-self-hosted-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosl-incubator%2Fgithub-actions-self-hosted-runner/lists"}