2019-02-09 19:42:36 +04:00
|
|
|
#! /usr/bin/env sh
|
|
|
|
|
|
|
|
# Exit in case of error
|
|
|
|
set -e
|
|
|
|
|
2020-04-19 16:44:12 +02:00
|
|
|
DOMAIN=backend \
|
|
|
|
SMTP_HOST="" \
|
|
|
|
TRAEFIK_PUBLIC_NETWORK_IS_EXTERNAL=false \
|
:recycle: Refactor backend, settings, DB sessions, types, configs, plugins (#158)
* :recycle: Refactor backend, update DB session handling
* :sparkles: Add mypy config and plugins
* :heavy_plus_sign: Use Python-jose instead of PyJWT
as it has some extra functionalities and features
* :sparkles: Add/update scripts for test, lint, format
* :wrench: Update lint and format configs
* :art: Update import format, comments, and types
* :art: Add types to config
* :sparkles: Add types for all the code, and small fixes
* :art: Use global imports to simplify exploring with Jupyter
* :recycle: Import schemas and models, instead of each class
* :truck: Rename db_session to db for simplicity
* :pushpin: Update dependencies installation for testing
2020-04-20 19:03:13 +02:00
|
|
|
INSTALL_DEV=true \
|
2019-02-09 19:42:36 +04:00
|
|
|
docker-compose \
|
2020-04-19 16:44:12 +02:00
|
|
|
-f docker-compose.yml \
|
2019-02-09 19:42:36 +04:00
|
|
|
config > docker-stack.yml
|
|
|
|
|
|
|
|
docker-compose -f docker-stack.yml build
|
|
|
|
docker-compose -f docker-stack.yml down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
|
|
|
|
docker-compose -f docker-stack.yml up -d
|
2020-04-19 12:34:03 +02:00
|
|
|
docker-compose -f docker-stack.yml exec -T backend bash /app/tests-start.sh "$@"
|
2019-02-09 19:42:36 +04:00
|
|
|
docker-compose -f docker-stack.yml down -v --remove-orphans
|