2020-02-04 10:09:04 -08:00
|
|
|
Oncall [](https://gitter.im/irisoncall/Lobby) [](https://circleci.com/gh/linkedin/oncall)  
|
2017-05-02 15:57:25 -07:00
|
|
|
======
|
|
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
<p align="center"><img src="https://github.com/linkedin/oncall/raw/master/docs/source/_static/demo.png" width="600"></p>
|
2017-05-18 16:08:37 -07:00
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
See [admin docs](http://oncall.tools/docs/admin_guide.html) for information on
|
|
|
|
|
how to run and manage Oncall.
|
2017-05-18 16:08:37 -07:00
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
Development setup
|
|
|
|
|
-----------------
|
2017-05-03 07:06:14 -06:00
|
|
|
### Prerequisites
|
2017-05-02 15:57:25 -07:00
|
|
|
|
2017-11-09 12:17:34 -05:00
|
|
|
* Debian/Ubuntu - `sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev python-pip python-setuptools mysql-server mysql-client`
|
2017-05-03 07:06:14 -06:00
|
|
|
|
|
|
|
|
### Install
|
2017-05-02 15:57:25 -07:00
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
```bash
|
2017-05-02 15:57:25 -07:00
|
|
|
python setup.py develop
|
2018-01-15 09:21:28 +01:00
|
|
|
pip install -e '.[dev]'
|
2017-05-02 15:57:25 -07:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Setup mysql schema:
|
|
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
```bash
|
2017-05-02 15:57:25 -07:00
|
|
|
mysql -u root -p < ./db/schema.v0.sql
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Setup app config by editing configs/config.yaml.
|
|
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
Optionally, you can import dummy data for testing:
|
|
|
|
|
|
|
|
|
|
```bash
|
2017-05-23 21:36:36 -07:00
|
|
|
mysql -u root -p -o oncall < ./db/dummy_data.sql
|
2017-05-23 12:54:42 -07:00
|
|
|
```
|
2017-05-02 15:57:25 -07:00
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
### Run
|
2017-05-02 15:57:25 -07:00
|
|
|
|
2017-05-11 22:51:40 -07:00
|
|
|
One of the following commands:
|
|
|
|
|
|
|
|
|
|
* `goreman start`
|
|
|
|
|
* `procman start`
|
|
|
|
|
* `make serve`
|
|
|
|
|
* `oncall-dev ./configs/config.yaml`
|
2017-05-02 15:57:25 -07:00
|
|
|
|
2017-05-19 18:07:35 -07:00
|
|
|
|
2017-05-23 12:54:42 -07:00
|
|
|
### Test
|
2017-05-02 15:57:25 -07:00
|
|
|
|
2017-05-09 22:31:50 -07:00
|
|
|
```bash
|
2017-05-02 15:57:25 -07:00
|
|
|
make test
|
|
|
|
|
```
|
2017-05-23 12:54:42 -07:00
|
|
|
|
|
|
|
|
Check out https://github.com/linkedin/oncall/issues for a list of outstanding
|
|
|
|
|
issues, and tackle any one that catches your interest. Contributions are
|
|
|
|
|
expected to be tested thoroughly and submitted with unit/end-to-end tests; look
|
|
|
|
|
in the e2e directory for our suite of end-to-end tests.
|