A Java Spring Boot application for detecting anomalies from GitHub Webhook events.
- Build the Docker image:
docker build -t anomaly-detector .- Run the Docker container:
docker run -p 8080:8080 anomaly-detector- Run ngrok to expose your local container to the internet:
ngrok http 127.0.0.1:8080-
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 -
Set the Content type to
application/json. -
Select individual events or choose "Send me everything" based on your requirements.
-
Click "Add webhook" to save.
Your application should now receive GitHub events and detect anomalies.
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.tarThen run the container as usual:
docker run -p 8080:8080 anomaly-detector:latest