0.0.1 • Published 5 months ago
@aws-nx/aws-ecr v0.0.1
Nx Aws Ecr Documentation
aws-ecr is a tool to manage AWS Elastic Container Registry (ECR) in NX workspace.
Table of Contents
Installation
The @aws-nx/aws-ecr
package can be installed via npm or yarn. It provides tools for managing AWS ECR containers. To install, use the following command:
npm i @aws-nx/aws-ecr
1. Configure Application
Command is used to configure an application. This command will generate a Dockerfile and project targets to manage containers.
nx g @aws-nx/aws-ecr:configure <APP_NAME>
[--tag <String | String[]>]
Options:
--tag
(optional): Tags can be used to categorize your applications. You can pass multiple --tag arguments. For example, --tag frontend --tag experimental.
2. Auth Ecr
Command is used to authenticate with AWS ECR.
nx auth <App_Name>
3. Build Container
Command is used to build a Docker container for the specified application.
nx docker-build <APP_NAME>
3. Tag Container Image
To tag docker image, use the following command:
nx tag <APP_NAME> --tag <Tag>
[--tag <String | String[]>]
4. Push Container to ECR
To push docker container to ecr, use the following command:
nx push <APP_NAME> --tag <Tag>
[--tag <String | String[]>]