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.
public bindAmi(): RunnerAmidef bind_ami() -> RunnerAmipublic RunnerAmi bindAmi()private RunnerAmi BindAmi()func BindAmi() RunnerAmibindDockerImage()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.
public bindDockerImage(): RunnerImagedef bind_docker_image() -> RunnerImagepublic RunnerImage bindDockerImage()private RunnerImage BindDockerImage()func BindDockerImage() RunnerImage