Skip to content
Snippets Groups Projects
Commit 982e6314 authored by Markus Willman's avatar Markus Willman
Browse files

wrap up: harden requirements files

- things are less likely to break when left unattended
- update README.md
parent 9d4a6e1f
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,10 @@ RUN apt-get update -qqy --fix-missing \
&& ln -s /opt/services/smartbusstop/conf/nginx/default.conf /etc/nginx/conf.d/default.conf \
&& ln -s /opt/services/smartbusstop/conf/supervisor/nginx.conf /etc/supervisor/conf.d/01_nginx.conf \
&& ln -s /opt/services/smartbusstop/conf/supervisor/smartbusstop.conf /etc/supervisor/conf.d/02_smartbusstop.conf \
&& git clone --depth=1 --branch=master https://github.com/oarriaga/face_classification /opt/services/smartbusstop/face_classification \
&& git clone --branch=master https://github.com/oarriaga/face_classification /opt/services/smartbusstop/face_classification \
&& cd /opt/services/smartbusstop/face_classification \
&& git reset --hard eb5d76ffd1a13c450a1dabb4f249d08cb2bd64b3 \
&& cd /opt/services/smartbusstop \
&& rm -rf /opt/services/smartbusstop/face_classification/.git \
&& apt-get remove -qqy --purge git \
&& apt-get autoremove -y
......
......@@ -72,19 +72,26 @@ storing them in this git repository itself.
Changes must be deployed manually through the gitlab web UI, using the "Run pipeline"
button under CI / CD > [Pipelines](https://gitlab.utu.fi/Smart_Bus_Stop/tensorflow-server/pipelines).
### API endpoints (tentative)
### Database
**TODO**
The database schema and access details are located in `contrib/src/web/database.py`
the same file can also be ran as a CLI script to create an empty database if it does
not yet exist.
Currently the docker container running the database is expected to be linked under the
name `database` (rancher-compose/docker-compose) using the default PostgreSQL port.
### API endpoints
The api endpoints are similar to what had been defined upstream, notably support
for GET requests and json results has been added. The ability to turn emotion
detection on or off was also added and the processor code refactored for more
control and better memory management.
There is no usage control or sanity checks which is a problem. *Logging requests is
largely absent when they succeed.* Version number added as part of the URI same as
frontend WIP endpoints. Stop code can optionally be passed as a query string argument
(stop_code), but it is only logged for processing errors.
There is no usage control or sanity checks which is a problem. Version number was
added as part of the URI same as frontend endpoints. Stop code can optionally
be passed as a query string argument (stop_code), it is logged for erros and in
the database alongside classification results.
```
URI: POST /api/v1/classifyImage[/<type>][?stop_code=<gtfs_stop_code>&detect_emotion=<1/0>]
......
Flask>=0.12.2
flask-request-id-middleware
numpy
scipy
scikit-learn
pillow
tensorflow
pandas
h5py
opencv-python==3.2.0.8
keras
statistics
pyyaml
pyparsing
cycler
matplotlib
requests
psycopg2-binary
peewee
python-dateutil
pytz
uWSGI>=2.0.15
virtualenv>=15.1.0
uWSGI>=2.0.15
virtualenv>=15.1.0
uWSGI==2.0.17
virtualenv==15.1.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment