Giter Club home page Giter Club logo

java-ecr-runcli-elasticbeanstalk's Introduction

Sample Java-Tomcat helloworld app

AyeAye

Sample Java/Tomcat app running in Docker container on Elastic Beanstalk

Run Status Coverage Badge

A simple Java Hello World application with unit tests and coverage reports.

This repo demonstrates the following features:

  • Set up serverless CI, i.e. on Shippable-provided infrastructure
  • Set up CD pipelines for deploying a docker image to a Single Container Docker Configuration on Amazon Elastic Beanstalk
  • Perform CI tests
  • Perform Maven build to generate .war package
  • Perform docker build to create Tomcat server with .war package
  • Push docker image to Amazon ECR
  • Automatically deploy docker image to TEST environment on Elastic Beanstalk
  • Manually deploy docker image to PROD environment on Elastic Beanstalk
  • Set up runCLI job types in Shippable using AWS EB CLI

Run CI for this repo on Shippable

  • Fork this repo into your source code account (e.g. GitHub)
  • Create an account (or login) on Shippable with your SCM account
  • Create an integration on Shippable for authenticating CI to AWS
  • Update the CI configuration in shippable.yml file with your integration names (see comments in file)

Add Continuous Delivery pipelines to deploy to Amazon EC/2

  • Pipeline configs are in shippable.resources.yml and shippable.jobs.yml Check these files and update config wherever the comment asks you to replace with your specific values
  • Follow instructions to add your Continuous Deployment pipeline
  • Right-click on the runCLI job in the SPOG view named 'demo-java-ecr-test-deploy' and run the job
  • Your app should be deployed to your Elastic Beanstalk Test environment
    • See http://{your-IP-address}:{your-test-env-port}/HelloWorld/hello in your browser
  • Right-click on the runCLI job in the SPOG view named 'demo-java-ecr-prod-deploy' and run the job to deploy to your Prod instance
    • See http://{your-IP-address}:{your-prod-env-port}/HelloWorld/hello in your browser
  • Make a change to your forked repo and commit to GitHub - watch your pipeline automatically execute CI with push to Amazon ECR and automatic deployment to the Test environment in Amazon Elastic Beanstalk
  • Then right-click to deploy the newest changes to the Prod environment

Your end-to-end pipeline is complete! Now, any change you make to the application will be deployed to your Amazon Elastic Beanstalk Test instance and be ready to manually deploy a Prod instance, as well.

CI console screenshot

CI Console Log

AWS integration screenshot

Integration View

CD Pipeline SPOG screenshot

CD Pipeline

java-ecr-runcli-elasticbeanstalk's People

Contributors

ambarish2012 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.