@blitzm/aws-container-registry
v0.2.1
Published
@blitzm/azure-cdn is a typescript library for simplifying the process of creating a ECR and pushing docker image to the ECR
Downloads
7
Keywords
Readme
Blitzm Cloud - AWS Container Registry
@blitzm/azure-cdn is a typescript library for simplifying the process of creating a ECR and pushing docker image to the ECR
Installation
This package can be installed using npm
npm install --save --save-exact @blitzm/azure-cdn
Usage
import { AWSContainerRegistry } from "@blitzm/aws-container-registry"
const dockerRepo = new AWSContainerRegistry("my-docker-repo", {
// allow push access from your cluster
pushAccess: [cluster.nodeRole],
// allow pull access from your cluster
pullAccess: [cluster.nodeRole]
});
// Build the push the image
// The result is the unique ID pointing to that pushed image in this repo.
const imageName = new dockerRepo.buildAndPushImage('app', {
context: path.resolve(__dirname, '../app/')
})
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.