StaticRunnerImage Class
Helper class with methods to use static images that are built outside the context of this project.
Initializer
import { StaticRunnerImage } from '@cloudsnorkel/cdk-github-runners'
new StaticRunnerImage()import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.StaticRunnerImage()import com.cloudsnorkel.cdk.github.runners.StaticRunnerImage;
new StaticRunnerImage();using CloudSnorkel;
new StaticRunnerImage();import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.NewStaticRunnerImage() StaticRunnerImageStatic Functions
fromDockerHub()from_docker_hub()fromDockerHub()FromDockerHub()FromDockerHub()
Create a builder from an existing Docker Hub image.
The image must already have GitHub Actions runner installed. You are responsible to update it and remove it when done.
We create a CodeBuild image builder behind the scenes to copy the image over to ECR. This helps avoid Docker Hub rate limits and prevent failures.
import { StaticRunnerImage } from '@cloudsnorkel/cdk-github-runners'
StaticRunnerImage.fromDockerHub(scope: Construct, id: string, image: string, architecture?: Architecture, os?: Os)scope:Constructid:stringimage:stringDocker Hub image with optional tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.StaticRunnerImage.from_docker_hub(
scope: Construct,
id: str,
image: str,
architecture: Architecture = None,
os: Os = None
)scope:Constructid:strimage:strDocker Hub image with optional tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
import com.cloudsnorkel.cdk.github.runners.StaticRunnerImage;
StaticRunnerImage.fromDockerHub(Construct scope, java.lang.String id, java.lang.String image),StaticRunnerImage.fromDockerHub(Construct scope, java.lang.String id, java.lang.String image, Architecture architecture),StaticRunnerImage.fromDockerHub(Construct scope, java.lang.String id, java.lang.String image, Architecture architecture, Os os)scope:Constructid:java.lang.Stringimage:java.lang.StringDocker Hub image with optional tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
using CloudSnorkel;
StaticRunnerImage.FromDockerHub(Construct Scope, string Id, string Image, Architecture Architecture = null, Os Os = null);Scope:ConstructId:stringImage:stringDocker Hub image with optional tag.
Architecture?:Architectureimage architecture.
Os?:Osimage OS.
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.StaticRunnerImage_FromDockerHub(scope Construct, id *string, image *string, architecture Architecture, os Os) IRunnerImageBuilderscope:Constructid:*stringimage:*stringDocker Hub image with optional tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
fromEcrRepository()from_ecr_repository()fromEcrRepository()FromEcrRepository()FromEcrRepository()
Create a builder (that doesn't actually build anything) from an existing image in an existing repository.
The image must already have GitHub Actions runner installed. You are responsible to update it and remove it when done.
import { StaticRunnerImage } from '@cloudsnorkel/cdk-github-runners'
StaticRunnerImage.fromEcrRepository(repository: IRepository, tag?: string, architecture?: Architecture, os?: Os)repository:IRepositoryECR repository.
tag?:stringimage tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.StaticRunnerImage.from_ecr_repository(
repository: IRepository,
tag: str = None,
architecture: Architecture = None,
os: Os = None
)repository:IRepositoryECR repository.
tag?:strimage tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
import com.cloudsnorkel.cdk.github.runners.StaticRunnerImage;
StaticRunnerImage.fromEcrRepository(IRepository repository),StaticRunnerImage.fromEcrRepository(IRepository repository, java.lang.String tag),StaticRunnerImage.fromEcrRepository(IRepository repository, java.lang.String tag, Architecture architecture),StaticRunnerImage.fromEcrRepository(IRepository repository, java.lang.String tag, Architecture architecture, Os os)repository:IRepositoryECR repository.
tag?:java.lang.Stringimage tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.
using CloudSnorkel;
StaticRunnerImage.FromEcrRepository(IRepository Repository, string Tag = null, Architecture Architecture = null, Os Os = null);Repository:IRepositoryECR repository.
Tag?:stringimage tag.
Architecture?:Architectureimage architecture.
Os?:Osimage OS.
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.StaticRunnerImage_FromEcrRepository(repository IRepository, tag *string, architecture Architecture, os Os) IRunnerImageBuilderrepository:IRepositoryECR repository.
tag?:*stringimage tag.
architecture?:Architectureimage architecture.
os?:Osimage OS.