Skip to content

Dockerfile for the creation of a GitHub Actions runner image to be deployed dynamically for organizations and arm64 platform

License

Notifications You must be signed in to change notification settings

codeyourbrand/github-runner-dockerfile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Dockerfile for the creation of a GitHub Actions runner image to be deployed dynamically for organizations and arm64 platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 77.7%
  • Shell 22.3%