Sign inSign up

bauerj/crashhub

By bauerj

Updated almost 6 years ago

Simple web service that aggregates crash reports and opens issues on Github

Image
0

1.3K

bauerj/crashhub repository overview

crashhub

Travis Coveralls License Docker build Image Size

This is a simple web service that aggregates crash reports and opens issues on Github.

Config file

To start using crashhub, create a config.json based on config.json.example:

config keyvalue
db_engineYour database engine. Either postgres, mysql or sqlite.
db_nameThe name of the database crashhub should use.
db_hostHostname of the database server. Leave this empty for sqlite.
db_portPort of the database server. Leave this empty for sqlite.
db_userName of the database user. Leave this empty for sqlite.
db_passwordPassword of the database user. Leave this empty for sqlite.
github_projectThe Github project issues should be posted in.
github_tokenSee :octocat: Creating a personal access token for the command line

Running crashhub

Database tables will be automatically created once you start crashhub.

Testing

To run crashhub in a non-production environment (e.g for debugging), simply run crashhub.py.

Production

For an extensive list of options to run crashhub in a high-performance production environment, see Flask: Deployment Options.

A :whale: Docker image that uses uWSGI is available here. It starts a WSGI server with 2 processes and 2 threads each on port 3031.

This config could be used to deploy it with mariadb and nginx on Docker:

version: '2'
services:
  mariadb:
    image: mariadb:latest
    volumes:
        - /var/volumes/mariadb/mysql:/var/lib/mysql
        - /var/volumes/mariadb/conf.d:/etc/mysql/conf.d
  nginx:
    image: nginx
    ports:
      - "80:80"
      - "443:443"
    links:
      - crashhub
    volumes:
      - /var/volumes/nginx/config:/etc/nginx
  crashhub:
    image: bauerj/crashhub
    links:
      - mariadb
    volumes:
      - /var/volumes/crashhub/config.json:/app/config.json

An nginx server configuration file could be as simple as this:

server {
    server_name crashhub.bauerj.eu;
    location / {
        include uwsgi_params;
        uwsgi_pass crashhub:3031;
    }
}

Tag summary

Content type

Image

Digest

Size

331.4 MB

Last updated

almost 6 years ago

docker pull bauerj/crashhub