We have discussed more about AWS services and now it’s time to discuss about next one. Yes, its Elastic container registry. Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images. Amazon ECR is integrated with Amazon Elastic Container Service (ECS), simplifying your development to production workflow. Amazon ECR eliminates the need to operate your own container repositories or worry about scaling the underlying infrastructure. Amazon ECR hosts your images in a highly available and scalable architecture, allowing you to reliably deploy containers for your applications. Integration with AWS Identity and Access Management (IAM) provides resource-level control of each repository. With Amazon ECR, there are no upfront fees or commitments. You pay only for data you store in your repositories and data transferred to the Internet.
In our previous posts, we have seen How to setup azure and google container registry on Jenkins, now its time to learn how to do in leading cloud service provider in the world. As its leading other competitor not only with service, with some easy steps too. As azure and google cloud need more steps to create the container registry but AWS have very few straight forward steps to create the registry.
Required Plugins
To access ECR from Jenkins, we need to install the following plugins.
- docker-build-step: This plugin allows to add various Docker commands as a build step. Latest version 2.0.
- Amazon ECR Plugin: This plugin generates Docker authentication token from Amazon Credentials to access Amazon ECR.
Create Container Registry
Login to your AWS account and in services, you can find ECR under compute section. Just click the ECR, it will take you to ECR welcome page, if you are new otherwise you can see your previous images. Once you been to welcome page as below
Now click Get Started for new user and create repository for existing users. Now it will take you to new page to enter repository name as below
Continue on: https://foxutech.com/setup-jenkins-with-amazon-elastic-container-registry/