Skip to content

VeryNiceOrg/anomaly-detector-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anomaly Detector

Overview

A Java Spring Boot application for detecting anomalies from GitHub Webhook events.

Run The Application

Using Docker

  1. Build the Docker image:
docker build -t anomaly-detector .
  1. Run the Docker container:
docker run -p 8080:8080 anomaly-detector

Connecting GitHub Webhooks

  1. Run ngrok to expose your local container to the internet:
ngrok http 127.0.0.1:8080
  1. Copy the public ngrok URL and add it in GitHub → Settings → Webhooks → Add webhook. Make sure to append /webhook to the URL, for example https://your-ngrok-id.ngrok.io/webhook

  2. Set the Content type to application/json.

  3. Select individual events or choose "Send me everything" based on your requirements.

  4. Click "Add webhook" to save.

Your application should now receive GitHub events and detect anomalies.

Optional:

Using the Provided Docker Image

Instead of building the image yourself, you can use the included anomaly-detector.tar file.
Load it into Docker with:

docker load -i anomaly-detector.tar

Then run the container as usual:

docker run -p 8080:8080 anomaly-detector:latest

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors