Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.18 KB

File metadata and controls

23 lines (20 loc) · 1.18 KB

github-runner-dockerfile

Fork reason

This repo is dedicated to support github-runners for organizations and supports other platform builds (e.g. arm64). It includes also maven, docker CLI and AWS CLI. To use host docker daemon change DOCKER_GROUP_ID arg in dockerfile to match with host docker group id.

Description

Dockerfile for the creation of a GitHub Actions runner image to be deployed dynamically. Find the full explanation and tutorial here.

Credit to testdriven.io for the original start.sh script, which I slightly modified to make it work with a regular repository rather than with an enterprise.

Build

docker buildx create --name multi --driver=docker-container 
docker buildx build --load --builder=multi --platform=linux/arm64 -t github-runner .

Run

replace

  • [YOUR-ORG] with your org name
  • [TOKEN] with Personal Access Token with repo, workflow, and admin:org scopes.
docker run -e "ORG=[YOUR-ORG]" -e "TOKEN=[TOKEN]" github-runner