This is list steps to produce a local deployment of Roger. This set up does NOT use airflow and instead only uses the Roger CLI via Makefile commands.
- Set up Roger dependencies by ensuring that the
.env
has all the correct information. - Run the following docker compose commands
docker compose up tranql -d
: starts up tranql which is the API handlerfor redis graph in thegraph
stagedocker compose up redis -d
: starts up redis which will be used via redis graph for thegraph
stagedocker compose up dug -d
: starts up dug API to work as the API handler for elastic search in theindex
stagedocker compose up elasticsearch -d
: starts up elastic search for theindex
stage
python3 -m venv ~/.environments/roger
source ~/.environments/roger/bin/activate
pip install -r requirements.txt
export PYTHONPATH=$PWD/dags
- Change the elasticsearch and redisgraph
host
values to localhost indags/roger/config/config.yaml
- Get the S3 Bucket credentials (access_key, bucket, host, secret_key) and export them as environment variables with ROGER_S3_ in the front of the value like:
ROGER_S3_ACCESS__KEY=XXXXKEYXXXX
cd bin/
and here either runmake all
OR separate the commands into three steps:make annotate
: executes the CLI related commands found inbin/dug_annotate/Makefile
make graph
: executes the CLI related commands found inbin/roger_graph_build/Makefile
make index
: executes the CLI related commands found inbin/dug_index/Makefile