From 724dd93e1e570a691b478570254062a0994ac425 Mon Sep 17 00:00:00 2001 From: Simran Sankhala <63577507+simran-sankhala@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:17:02 +0530 Subject: [PATCH 1/3] Bump flask from 1.0.2 to 2.3.2 , Bump Flask-SQLAlchemy to 3.0.5 updated the versions of required dependencies --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1ab47fe..438d63c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -18,10 +18,10 @@ docutils==0.15.2 dogpile.cache==0.8.0 flagpole==1.1.1 flasgger==0.6.3 -Flask==1.0.2 +Flask==2.3.2 Flask-RESTful==0.3.5 Flask-Script==2.0.5 -Flask-SQLAlchemy>=2.5 +Flask-SQLAlchemy==3.0.5 gunicorn==19.7.1 idna==2.8 importlib-metadata From bddbe10b7759ef79efdbab32e5dda843fbc618df Mon Sep 17 00:00:00 2001 From: Simran Sankhala <63577507+simran-sankhala@users.noreply.github.com> Date: Tue, 5 Sep 2023 03:10:35 +0530 Subject: [PATCH 2/3] Fixed Installation errors --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8cc13b8..52b5a6b 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ git clone https://github.com/Netflix-Skunkworks/aardvark.git cd aardvark python3 -m venv env . env/bin/activate +pip3 install -r requirements.txt python setup.py develop ``` @@ -143,12 +144,16 @@ Once this file is created, then build the containers and start the services. Aar - API Server - This is the HTTP webserver will serve the data. By default, this is listening on [http://localhost:5000/apidocs/#!](http://localhost:5000/apidocs/#!). - Collector - This is a daemon that will fetch and cache the data in the local SQL database. This should be run periodically. +### Docker Way ```bash -# build the containers -docker-compose build - -# start up the containers -docker-compose up +git clone https://github.com/Netflix-Skunkworks/aardvark +cd aardvark +docker run -it --rm -v $(pwd):/opt python:3.9 /bin/bash +cd /opt/ +python3 -m venv env +. env/bin/activate +pip3 install -r requirements.txt +python3 setup.py develop ``` Finally, to clean up the environment From 7da2aa45f8a80f260a0faf5a2acc15a50bccd501 Mon Sep 17 00:00:00 2001 From: Simran Sankhala <63577507+simran-sankhala@users.noreply.github.com> Date: Tue, 5 Sep 2023 03:11:44 +0530 Subject: [PATCH 3/3] Fixed Installing issues & added docker installation guide --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 52b5a6b..1059abc 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ Once this file is created, then build the containers and start the services. Aar - Collector - This is a daemon that will fetch and cache the data in the local SQL database. This should be run periodically. ### Docker Way + ```bash git clone https://github.com/Netflix-Skunkworks/aardvark cd aardvark