Skip to content

IRunnerImageBuilder Interface ​

Interface for constructs that build an image that can be used in IRunnerProvider.

An image can be a Docker image or AMI.

Implemented by: RunnerImageBuilder, IConfigurableRunnerImageBuilder, IRunnerImageBuilder

Methods ​

bindAmi()bind_ami()bindAmi()BindAmi()BindAmi() ​

Build and return an AMI with GitHub Runner installed in it.

Anything that ends up with a launch template pointing to an AMI that runs GitHub self-hosted runners can be used. A simple implementation could even point to an existing AMI and nothing else.

The AMI can be further updated over time manually or using a schedule as long as it is always written to the same launch template.

ts
public bindAmi(): RunnerAmi
python
def bind_ami() -> RunnerAmi
java
public RunnerAmi bindAmi()
csharp
private RunnerAmi BindAmi()
go
func BindAmi() RunnerAmi

bindDockerImage()bind_docker_image()bindDockerImage()BindDockerImage()BindDockerImage() ​

Build and return a Docker image with GitHub Runner installed in it.

Anything that ends up with an ECR repository containing a Docker image that runs GitHub self-hosted runners can be used. A simple implementation could even point to an existing image and nothing else.

It's important that the specified image tag be available at the time the repository is available. Providers usually assume the image is ready and will fail if it's not.

The image can be further updated over time manually or using a schedule as long as it is always written to the same tag.

ts
public bindDockerImage(): RunnerImage
python
def bind_docker_image() -> RunnerImage
java
public RunnerImage bindDockerImage()
csharp
private RunnerImage BindDockerImage()
go
func BindDockerImage() RunnerImage

Released under the Apache-2.0 License.