Giter Site home page Giter Site logo

matwerber1 / aws-cdk-codepipeline-for-ecr-image-build Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 4.0 1.05 MB

A simple CDK project that quickly provisioned a continuous integration (CI) pipeline for building and pushing images to Amazon Elastic Container Registry (ECR)

JavaScript 7.67% TypeScript 92.33%

aws-cdk-codepipeline-for-ecr-image-build's Introduction

AWS CDK Pipeline for ECR Image Pipeline

This Amazon Cloud Development Kit (CDK) project provides you with a continuous integration (CI) pipeline to build Docker images and push them to Amazon Elastic Container Registry (ECR).

Architecture

This project deploys:

  1. An empty AWS CodeCommit repository to later hold your Dockerfile. We will call this your "Dockerfile repository".

  2. An empty ECR container repository, which we will call your "container repository".

  3. A AWS CodePipeline pipeline that triggers when changes are pushed to the master branch of your Dockerfile repository. The pipeline passes the contents of your Dockerfile repository to an AWS CodeBuild project. The project executes whatever statements you specify within the buildspec.yml file within the Dockerfile repository. At it's heart, these should be docker build and docker push commands, with a few other administrative requirements. I will provide you with an example, later on.

What is the CDK?

The AWS CDK is a library that is (as of 11/13/2019) GA for Python, Javascript, and Typescript, and is in preview for Java and .Net. You may refer to the [CDK docs](for details), but at a high level, it is an abstraction over AWS CloudFormation that makes it much faster and simpler to write CloudFormation templates. The abstraction requires far fewer lines of code, but is still ultimately compiled by the accompanying CDK CLI into native CloudFormation and launched as a standard CloudFormation stack.

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

aws-cdk-codepipeline-for-ecr-image-build's People

Watchers

 avatar  avatar

Forkers

miztiik adam-shub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.