GithubHelp home page GithubHelp logo

idryzhov / frrbot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frrouting/frrbot

0.0 1.0 0.0 199 KB

beep boop sign your commits

License: GNU General Public License v3.0

Python 98.53% Dockerfile 1.47%

frrbot's Introduction

frrbot

A GitHub bot for managing the FRRouting/frr repo.

Quickstart

git clone https://github.com/frrouting/frrbot.git
cd frrbot
mkdir data
cp .env.sample .env
# Edit .env and fill in all values
docker compose up -d

The app will now be listening on 127.0.0.1:9091. You can either:

  • change the port in docker-compose.yml to 80, or
  • set up a reverse proxy from 80 to 9091

The latter is recommended; this way you can set up TLS in the reverse proxy.

  • GH_WEBHOOK_SECRET should be the webhook secret used to authenticate requests from GitHub
  • GH_APP_ID should be the ID of your GitHub App
  • GP_APP_ROUTE should be the URL you want to listen for webhooks on relative to the uWSGI mountpoint
  • GH_APP_PKEY_PEM_PATH should be the absolute path to the PEM format private key associated with your GitHub App; you should mount the key into the container at that path
  • GH_GIST_USER_TOKEN should be a personal access token for a real user. This user will be used to host gists, since GitHub apps can't use gists.

Miscellaneous notes:

  • uWSGI options within the container can be modified by changing uwsgi.ini in this repository root and rebuilding the container.
  • The job store sqlite database will be in data/jobstore.sqlite

Development

Running manually

  1. docker build --tag frrbot:latest .
  2. docker run -e GH_WEBHOOK_SECRET=<secret> GH_APP_ROUTE="/gh" GH_APP_ID=<ID> -e GH_APP_PKEY_PEM_PATH=<path> -e JOB_STORE_PATH=<path> --port 80:80 frrbot:latest
  3. frrbot will be listening on 0.0.0.0:80/frrbot/gh

frrbot's People

Contributors

choppsv1 avatar idryzhov avatar qlyoung avatar ton31337 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.