npm.io
0.2.1 • Published 3 years ago

@blitzm/aws-container-registry

Licence
Blitzm
Version
0.2.1
Deps
0
Size
18 kB
Vulns
0
Weekly
0

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.

License

Blitzm