Git Product home page Git Product logo

auto-deploy's Introduction

Auto-Deploy

This is an API which helps manage a library system. Deploy this application using a pipeline with the following commands below.

Step 1

Build the docker image locally with the provided file.

Step 2

The below will create a jenkins image which will run on docker, it is also enabled to talk to host docker daemon.

FROM jenkins/jenkins:lts
USER root
RUN apt-get update
RUN curl -sSL https://get.docker.com/ | sh

And run this image using the command

sudo docker run -p 8080:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock go/jenkins:latest

go/jenkins:latest is the name of the built image in our case.

Step 3

Setup Jenkins dashboard

Step 4

Create a new Pipeline project in Jenkins and enable GitSCM polling to integrate with GitHub webhooks. Add the Jenkinsfile to the script to create the pipeline steps and initialize the pipeline.

Step 5

Expose your localhost port 8080 which is running Jenkins to the internet using ngrok. You will have to create a ngrok account which will provide you with a key to use ngrok ''' ngrok http 8080 ''' Verify the link provided if it is now accessible.

Step 6

Go to your GitHub project of your application and in settings add a new webhook with the ngrok url and add '/github-webhook/' at the end of the url, enable webhook to run on pushes, PRs and commits. Jenkins recieves webhook request at this particular URL only

Step 7

Now startup minikube and install ArgoCD using the official documentation and create a new app that links to your other repo which will include all k8s config yaml files for GitOps.

Step 8

Simply expose your service using the minikube official documentation. ''' minikube service pipeline-service --url '''

You now have a fully functional CI/CD pipeline which uses docker, jenkins, argo CD, kubernetes, github/git.

auto-deploy's People

Contributors

rootxrishabh avatar torvalds avatar

Stargazers

 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.