Docker image to create a self hosted github runner.
98
Docker image to create a self hosted github runner.
Runners are the machines that execute jobs in a GitHub Actions workflow. For example, a runner can clone your repository locally, install testing software, and then run commands that evaluate your code.
GitHub provides runners that you can use to run your jobs, or you can host your own runners. Each GitHub-hosted runner is a new virtual machine (VM) hosted by GitHub with the runner application and other tools preinstalled, and is available with Ubuntu Linux, Windows, or macOS operating systems. When you use a GitHub-hosted runner, machine maintenance and upgrades are taken care of for you.
docker run crazynds/github-runner -v '/var/run/docker.sock:/var/run/docker.sock' -e URL $URL -e TOKEN $TOKEN
version: '3'
services:
runner:
image: crazynds/github-runner
restart: unless-stopped
volumes:
- './data:/runner'
- '/var/run/docker.sock:/var/run/docker.sock'
environment:
URL: ${URL}
TOKEN: ${TOKEN}
URL - Url of repositoryTOKEN - Token for github repository.You can get this in Repository->Settings->Actions->Runners->New Self Hosted Runner (Configure section)
/runner - Saved data from github used by runner./var/run/docker.sock - You have to map docker socket to runner be able to use docker.This project is licensed under the MIT License - see the LICENSE.md file for details.
Content type
Image
Digest
sha256:0adf5cbc3…
Size
408.5 MB
Last updated
over 3 years ago
docker pull crazynds/github-runner