Coder Social home page Coder Social logo

andresaaap / jenkins-cicd-static-web-microservice Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9.5 MB

Jenkins CI/CD pipeline for microservices, pushing Docker containers to the Docker repository and deploying them to a Kubernetes cluster in AWS EKS

Dockerfile 52.56% HTML 47.44%

jenkins-cicd-static-web-microservice's Introduction

Intro

This is a Jenkins CI CI/CD pipeline for microservices, pushing Docker containers to the Docker repository and deploying them to a Kubernetes cluster in AWS EKS. This will create value by making the code building process and deploying faster and automatic.

Install

To be able to use this CI/CD pipeline we will need:

  • Jenkins
  • eksctl
  • aws cli
  • docker
  • kubectl
  1. To install Jenkins please follow this guide http://jenkins.io/doc/book/installing/
  2. To install docker please follow this guide https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
  3. To install eksctl, aws cli and kubectl follow this guide https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html

Project explanation

The pipeline has the following stages. First, there is a linting stage using the library tidy to lint the HTML and catch errors in the HTML. Please look at the image: lint.png

Then, I use docker cli to build the image and push it to a docker repository. Please look at the images: build-image.png push-image.png docker-image-repository.png

Then, there is a stage where I use kubectl to deploy the docker image to the cluster in the blue and green pod and create a service that redirects traffic to the blue pod. Please look at the images: deploy-blue-container.png deploy-green-container.png service-redirect-blue.png

Then, there is a stage where the service is updated to redirect traffic to the green pod. Please look at the image: service-redirect-green.png

Finally, the website can be access using the URL of the service and the port. Please look at the images: website.png service-pods.png

Resources & Links

jenkins-cicd-static-web-microservice's People

Contributors

andresaaap 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.