GithubHelp home page GithubHelp logo

phase5's Introduction

CICD-DEMO

This project aims to be the basic skeleton to apply continuous integration and continuous delivery.

Topology

CICD Demo uses some kubernetes primitives to deploy:

  • Deployment
  • Services
  • Ingress ( with TLS )
     internet
        |
   [ Ingress ]
   --|-----|--
   [ Services ]
   --|-----|--
   [   Pods   ]

This project includes:

  • Spring Boot java app
  • Jenkinsfile integration to run pipelines
  • Dockerfile containing the base image to run java apps
  • Makefile and docker-compose to make the pipeline steps much simpler
  • Kubernetes deployment file demonstrating how to deploy this app in a simple Kubernetes cluster

Pipeline Setup

Pipelines exist at Travis.

Some pipelines are configured by GitHub/Projects. If you have created a repository in one of these, your project will be automatically built if it has a Jenkinsfile/Travis/Gitlab/CircleCI.

Other pipelines are configured manually under folders. You can create a project manually with the following steps:

How to run the app:

make

Testing

Unit tests and integrations tests are separated using JUnit Categories.

Unit Tests

mvn test -Dgroups=UnitTest

Or using Docker:

make build

Integration Tests

mvn integration-test -Dgroups=IntegrationTests

Or using Docker:

make integrationTest

System Tests

System tests run with Selenium using docker-compose to run a Selenium standalone container with Chrome.

Using Docker:

  • If you are running locally, make sure the $APP_URL is populated and points to a valid instance of your application. This variable is populated automatically in Jenkins.
APP_URL=http://dev-cicd-demo-master.anzcd.internal/ make systemTest

phase5's People

Contributors

karthikchaandu avatar

Watchers

 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.