0.2.1 • Published 11 months ago

@blitzm/aws-container-registry v0.2.1

Weekly downloads
2
License
Blitzm
Repository
-
Last release
11 months ago

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

0.2.1

11 months ago

0.2.0

1 year ago

0.1.0

4 years ago