diff --git a/dockereve-master/docker-compose.yml b/dockereve-master/docker-compose.yml index 879194a..8e62552 100644 --- a/dockereve-master/docker-compose.yml +++ b/dockereve-master/docker-compose.yml @@ -10,7 +10,7 @@ nginx: links: - eve:eve - swagger_ui:swagger_ui - + swagger_ui: image: swaggerapi/swagger-ui:v3.0.12 environment: diff --git a/dockereve-master/eve-app/app.py b/dockereve-master/eve-app/app.py index 66e8c84..c425396 100644 --- a/dockereve-master/eve-app/app.py +++ b/dockereve-master/eve-app/app.py @@ -1,9 +1,11 @@ +# -*- coding: utf-8 -*- +# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- +# vi: set ft=python sts=4 ts=4 sw=4 et: + from eve import Eve from eve.auth import TokenAuth from eve_swagger import swagger from settings import my_settings as ms -import os -script_dir = os.path.dirname(os.path.abspath(__file__)) class TokenAuth(TokenAuth): def check_auth(self, token, allowed_roles, resource, method): @@ -22,4 +24,3 @@ def check_auth(self, token, allowed_roles, resource, method): if __name__ == '__main__': app.run(host='0.0.0.0') - diff --git a/dockereve-master/eve-app/requirements.txt b/dockereve-master/eve-app/requirements.txt index b0bca4f..f44a394 100644 --- a/dockereve-master/eve-app/requirements.txt +++ b/dockereve-master/eve-app/requirements.txt @@ -1,3 +1,3 @@ gunicorn==19.3.0 -eve==0.6.3 +eve==0.7.4 eve-swagger==0.0.7