Giter Site home page Giter Site logo

joncak / github-webhook-kubernetes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spring-attic/github-webhook-kubernetes

0.0 2.0 0.0 179 KB

GitHub Webhook app. Receives messages from GitHub and sends them to a message broker. Part of the deployment pipeline example for Kubernetes

License: Apache License 2.0

Shell 11.97% Batchfile 9.50% Java 24.58% Groovy 53.95%

github-webhook-kubernetes's Introduction

GitHub Webhook

GitHub Webhook app. Receives messages from GitHub and sends them to a message broker. Part of the deployment pipeline example

Docker integration

For more information please read the guides.

Building docker image

$  ./mvnw package docker:build

Setting authentication for Docker

Go to your ~/.m2/settings.xml and add the server with id docker-repo

<server>
  <id>docker-repo</id>
  <username>username</username>
  <password>password</password>
  <configuration>
    <email>[email protected]</email>
  </configuration>
</server>

Pushing docker image

Important
Remember to set authentication in your settings.xml
$  ./mvnw package docker:build -DpushImage

or

$  ./mvnw deploy

Running the application in Kubernetes

  • First create and push the docker image

    $ ./mvnw package docker:build -DpushImage
  • Start minikube

    $ minikube start
  • Start Kubernetes Dashboard

    $ minikube dashboard
  • Create this deployment on the cluster using kubectl

    $ kubectl create -f deployment.yml
  • Check if deployment is there

    kubectl describe deployment github-webhook-deployment
  • Create a service to expose the pod to the outside world

    $ kubectl create -f service.yml
  • Check if service has properly been created

    $ kubectl describe service github-webhook-service
  • Retrieve the URL from minikube

    $ minikube service github-webhook-service --url
  • Or go directly to the URL

    $ minikube service github-webhook-service

Deleting deployments / services

It’s enough to call kubectl delete to delete deployment / service

$ kubectl delete deployment github-webhook-deployment
$ kubectl delete service github-webhook-service

github-webhook-kubernetes's People

Contributors

dsyer avatar marcingrzejszczak avatar markfisher avatar

Watchers

 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.