Skip to content

Latest commit

 

History

History
75 lines (60 loc) · 2.01 KB

File metadata and controls

75 lines (60 loc) · 2.01 KB

Overseer Log Store

Installation

Overseer requires Python 3.8. Pipenv is recommended for installing Overseer.

$ mkdir .venv
$ pipenv install

Configuration

Overseer reads its configuration from environment variables. See sample.env for guidance.

You can set the variables freely, the only thing to keep in mind is that you will need the public key of Revolori that is created during its setup.

Running Overseer using Docker

Create a .env file according to the template sample.env.

Copy the public key from Revolori setup to the location of $JWT_PUBLIC_KEY set in .env:

$ set -a && source .env
$ cp ../revolori-sso-provider/dev_keys/ecdsa_key.pub $JWT_PUBLIC_KEY

To start the services:

$ docker-compose up -d --build

To stop the services:

$ docker-compose down

Development

Migrating the database:

$ ./migrate-db

Running the dev server:

$ ./dev-server

Creating new database migrations:

$ ./create-db-revision "Add X column to table Y"

Testing

Unit tests

Make sure to set up the environmental variables. Then run:

$ python -m pytest ./overseer

System tests

These tests are designed to test a deployed system. Run:

$ pytest ./system_test [-P PROTOCOL] -E OVERSEER_ENDPOINT [-T TIMEOUT]

Parameters:

  • OVERSEER_ENDPOINT: the server endpoint root of the to-be-tested Overseer
  • PROTOCOL: the connection protocol (default: https)
  • TIMEOUT: how long to wait for a response from the server (default: 3)