BaseContainerImage Class
Represents a base container image that is used to start from in EC2 Image Builder container builds.
This class is adapted from AWS CDK's BaseContainerImage class to support both string and object inputs.
Initializer
import { BaseContainerImage } from '@cloudsnorkel/cdk-github-runners'
new BaseContainerImage(image: string, ecrRepository?: IRepository)image:stringecrRepository?:IRepository
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.BaseContainerImage(
image: str,
ecr_repository: IRepository = None
)image:strecr_repository?:IRepository
import com.cloudsnorkel.cdk.github.runners.BaseContainerImage;
new BaseContainerImage(java.lang.String image);,new BaseContainerImage(java.lang.String image, IRepository ecrRepository);image:java.lang.StringecrRepository?:IRepository
using CloudSnorkel;
new BaseContainerImage(string Image, IRepository EcrRepository = null);Image:stringEcrRepository?:IRepository
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.NewBaseContainerImage(image *string, ecrRepository IRepository) BaseContainerImageimage:*stringecrRepository?:IRepository
Static Functions
fromDockerHub()from_docker_hub()fromDockerHub()FromDockerHub()FromDockerHub()
The DockerHub image to use as the base image in a container recipe.
import { BaseContainerImage } from '@cloudsnorkel/cdk-github-runners'
BaseContainerImage.fromDockerHub(repository: string, tag: string)repository:stringThe DockerHub repository where the base image resides in.
tag:stringThe tag of the base image in the DockerHub repository.
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.BaseContainerImage.from_docker_hub(
repository: str,
tag: str
)repository:strThe DockerHub repository where the base image resides in.
tag:strThe tag of the base image in the DockerHub repository.
import com.cloudsnorkel.cdk.github.runners.BaseContainerImage;
BaseContainerImage.fromDockerHub(java.lang.String repository, java.lang.String tag)repository:java.lang.StringThe DockerHub repository where the base image resides in.
tag:java.lang.StringThe tag of the base image in the DockerHub repository.
using CloudSnorkel;
BaseContainerImage.FromDockerHub(string Repository, string Tag);Repository:stringThe DockerHub repository where the base image resides in.
Tag:stringThe tag of the base image in the DockerHub repository.
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.BaseContainerImage_FromDockerHub(repository *string, tag *string) BaseContainerImagerepository:*stringThe DockerHub repository where the base image resides in.
tag:*stringThe tag of the base image in the DockerHub repository.
fromEcr()from_ecr()fromEcr()FromEcr()FromEcr()
The ECR container image to use as the base image in a container recipe.
import { BaseContainerImage } from '@cloudsnorkel/cdk-github-runners'
BaseContainerImage.fromEcr(repository: IRepository, tag: string)repository:IRepositoryThe ECR repository where the base image resides in.
tag:stringThe tag of the base image in the ECR repository.
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.BaseContainerImage.from_ecr(
repository: IRepository,
tag: str
)repository:IRepositoryThe ECR repository where the base image resides in.
tag:strThe tag of the base image in the ECR repository.
import com.cloudsnorkel.cdk.github.runners.BaseContainerImage;
BaseContainerImage.fromEcr(IRepository repository, java.lang.String tag)repository:IRepositoryThe ECR repository where the base image resides in.
tag:java.lang.StringThe tag of the base image in the ECR repository.
using CloudSnorkel;
BaseContainerImage.FromEcr(IRepository Repository, string Tag);Repository:IRepositoryThe ECR repository where the base image resides in.
Tag:stringThe tag of the base image in the ECR repository.
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.BaseContainerImage_FromEcr(repository IRepository, tag *string) BaseContainerImagerepository:IRepositoryThe ECR repository where the base image resides in.
tag:*stringThe tag of the base image in the ECR repository.
fromEcrPublic()from_ecr_public()fromEcrPublic()FromEcrPublic()FromEcrPublic()
The ECR public container image to use as the base image in a container recipe.
import { BaseContainerImage } from '@cloudsnorkel/cdk-github-runners'
BaseContainerImage.fromEcrPublic(registryAlias: string, repositoryName: string, tag: string)registryAlias:stringThe alias of the ECR public registry where the base image resides in.
repositoryName:stringThe name of the ECR public repository, where the base image resides in.
tag:stringThe tag of the base image in the ECR public repository.
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.BaseContainerImage.from_ecr_public(
registry_alias: str,
repository_name: str,
tag: str
)registry_alias:strThe alias of the ECR public registry where the base image resides in.
repository_name:strThe name of the ECR public repository, where the base image resides in.
tag:strThe tag of the base image in the ECR public repository.
import com.cloudsnorkel.cdk.github.runners.BaseContainerImage;
BaseContainerImage.fromEcrPublic(java.lang.String registryAlias, java.lang.String repositoryName, java.lang.String tag)registryAlias:java.lang.StringThe alias of the ECR public registry where the base image resides in.
repositoryName:java.lang.StringThe name of the ECR public repository, where the base image resides in.
tag:java.lang.StringThe tag of the base image in the ECR public repository.
using CloudSnorkel;
BaseContainerImage.FromEcrPublic(string RegistryAlias, string RepositoryName, string Tag);RegistryAlias:stringThe alias of the ECR public registry where the base image resides in.
RepositoryName:stringThe name of the ECR public repository, where the base image resides in.
Tag:stringThe tag of the base image in the ECR public repository.
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.BaseContainerImage_FromEcrPublic(registryAlias *string, repositoryName *string, tag *string) BaseContainerImageregistryAlias:*stringThe alias of the ECR public registry where the base image resides in.
repositoryName:*stringThe name of the ECR public repository, where the base image resides in.
tag:*stringThe tag of the base image in the ECR public repository.
fromString()from_string()fromString()FromString()FromString()
The string value of the base image to use in a container recipe.
This can be an EC2 Image Builder image ARN, an ECR or ECR public image, or a container URI sourced from a third-party container registry such as DockerHub.
import { BaseContainerImage } from '@cloudsnorkel/cdk-github-runners'
BaseContainerImage.fromString(baseContainerImageString: string)baseContainerImageString:stringThe base image as a direct string value.
import cloudsnorkel.cdk_github_runners
cloudsnorkel.cdk_github_runners.BaseContainerImage.from_string(
base_container_image_string: str
)base_container_image_string:strThe base image as a direct string value.
import com.cloudsnorkel.cdk.github.runners.BaseContainerImage;
BaseContainerImage.fromString(java.lang.String baseContainerImageString)baseContainerImageString:java.lang.StringThe base image as a direct string value.
using CloudSnorkel;
BaseContainerImage.FromString(string BaseContainerImageString);BaseContainerImageString:stringThe base image as a direct string value.
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"
cloudsnorkelcdkgithubrunners.BaseContainerImage_FromString(baseContainerImageString *string) BaseContainerImagebaseContainerImageString:*stringThe base image as a direct string value.
Properties
imageimageimageImageImage
image: string
image: str
image: java.lang.String
Image: string
Image: *string
The rendered base image to use.
ecrRepositoryecr_repositoryecrRepositoryEcrRepositoryEcrRepository
ecrRepository?: IRepository
ecr_repository?: IRepository
ecrRepository?: IRepository
EcrRepository?: IRepository
EcrRepository?: IRepository
The ECR repository if this image was created from an ECR repository.
This allows automatic permission granting for CodeBuild.