Giter Club home page Giter Club logo

github-actions-runner-images's Introduction

GitHub Actions Runner Images

See the official GitHub Actions Runner repository for additional information.

See the Actions Runner Controller release documentation for more information regarding the Dockerfile and how it may be used to produce self-hosted Actions runners. These runners may be used in conjuction with ARC and Kubernetes.

Dockerfile

The Dockerfile in this repository was copied from the official GitHub actions/runner repository. That Dockerfile may be found here:

https://github.com/actions/runner/blob/main/images/Dockerfile

Arguments

The Dockerfile requires the following arguments to build an image. Some arguments have defaults specified within the Dockerfile.

Arguments for a Linux image:

TARGETOS=linux
TARGETARCH=amd64
RUNNER_VERSION=2.308.0
RUNNER_CONTAINER_HOOKS_VERSION=0.3.2
DOCKER_VERSION=23.0.6

Build the Image

Run the following command from the project base directory to build a Linux action runner.

TIP: Update the tag name to the desired image name.

docker build \
  --build-arg TARGETOS=linux \
  --build-arg TARGETARCH=amd64 \
  --build-arg RUNNER_VERSION=2.308.0 \
 --tag mwarman/gh-actions-runner-linux:latest \
 .

Pod Spec

This is an example of a pod spec with the init container copying assets to the runner directory.

TIP: Update the YAML with the your pod and image names.

apiVersion: v1
kind: Pod
metadata:
  name: <name>
spec:
  containers:
    - name: runner
      image: <image>
      command: ['/runner/run.sh']
      volumeMounts:
        - name: runner
          mountPath: /runner
  initContainers:
    - name: setup
      image: <image>
      command: ['sh', '-c', 'cp -r /actions-runner/* /runner/']
      volumeMounts:
        - name: runner
          mountPath: /runner
  volumes:
    - name: runner
      emptyDir: {}

Related Information

GitHub Actions Runner
Action Runner Controller
Producing Runner Images
GitHub Actions Runner Dockerfile

github-actions-runner-images's People

Contributors

mwarman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.