Skip to content

Commit

Permalink
Rename app directory
Browse files Browse the repository at this point in the history
No functional change
  • Loading branch information
c-w committed Aug 6, 2018
1 parent 06dec57 commit 2e41c09
Show file tree
Hide file tree
Showing 34 changed files with 14 additions and 14 deletions.
File renamed without changes.
0 api/Dockerfile → app/Dockerfile 100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Expand Up @@ -5,10 +5,10 @@
from io import BytesIO
from time import sleep
from http import HTTPStatus
from api.api import app
from api.models.database_manager import DatabaseManager
from api.models.image_status_enum import ImageStatusEnum
from api.models.models import init_models, delete_models
from faceanalysis.api import app
from faceanalysis.models.database_manager import DatabaseManager
from faceanalysis.models.image_status_enum import ImageStatusEnum
from faceanalysis.models.models import init_models, delete_models


class ApiTestCase(unittest.TestCase):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions api/worker.py → app/worker.py
@@ -1,6 +1,6 @@
from api.models.database_manager import DatabaseManager
from api.models.models import init_models
from api.pipeline import Pipeline
from faceanalysis.models.database_manager import DatabaseManager
from faceanalysis.models.models import init_models
from faceanalysis.pipeline import Pipeline

if __name__ == "__main__":
db = DatabaseManager()
Expand Down
2 changes: 1 addition & 1 deletion api/wsgi.py → app/wsgi.py
@@ -1,4 +1,4 @@
from api.api import app as application
from faceanalysis.api import app as application

if __name__ == '__main__':
application.run()
8 changes: 4 additions & 4 deletions docker-compose.yml
Expand Up @@ -17,7 +17,7 @@ services:
worker:
restart: always
image: faceanalysis_app:${BUILD_TAG}
build: ./api
build: ./app
command: ["python3", "worker.py"]
depends_on:
- mysql
Expand All @@ -27,14 +27,14 @@ services:
max-size: "50m"
max-file: "5"
volumes:
- "${DATA_DIR}:/app/api/images"
- "${DATA_DIR}:/app/faceanalysis/images"
env_file:
- ./environment_variables.env

api:
restart: always
image: faceanalysis_app:${BUILD_TAG}
build: ./api
build: ./app
depends_on:
- worker
- mysql
Expand All @@ -44,7 +44,7 @@ services:
max-size: "50m"
max-file: "5"
volumes:
- "${DATA_DIR}:/app/api/images"
- "${DATA_DIR}:/app/faceanalysis/images"
env_file:
- ./environment_variables.env

Expand Down
4 changes: 2 additions & 2 deletions run-test.sh
Expand Up @@ -12,8 +12,8 @@ trap cleanup EXIT
docker-compose down
docker-compose build --build-arg DEVTOOLS=true

docker-compose run --rm --no-deps --entrypoint=python3 api -m pylint /app/api
docker-compose run --rm --no-deps --entrypoint=python3 api -m flake8 /app/api
docker-compose run --rm --no-deps --entrypoint=python3 api -m pylint /app/faceanalysis
docker-compose run --rm --no-deps --entrypoint=python3 api -m flake8 /app/faceanalysis

APP_PORT="${app_port}" \
DATA_DIR="${data_dir}" \
Expand Down

0 comments on commit 2e41c09

Please sign in to comment.