DANGER: checking dockerenv

This commit is contained in:
nothink 2018-07-25 23:12:01 +09:00
parent 22a6859cb5
commit d4dabb60bf
2 changed files with 3 additions and 5 deletions

View file

@ -25,9 +25,7 @@ matrix:
- pip install -r requirements.txt
- pip install -r dev-requirements.txt
script:
- sudo cat /.dockerenv
- sudo rm /.dockerenv
- pycodestyle szurubooru/
# - pycodestyle szurubooru/
- ./wait-for-es
- alembic upgrade head
- py.test

View file

@ -51,8 +51,8 @@ def read_config() -> Dict:
if os.path.exists('../config.yaml'):
with open('../config.yaml') as handle:
ret = merge(ret, yaml.load(handle.read()))
if os.path.exists('/.dockerenv'):
ret = merge(ret, docker_config())
# if os.path.exists('/.dockerenv'):
# ret = merge(ret, docker_config())
return ret