Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 18c2a3e

Browse files
authoredNov 24, 2020
Workaround to prevent yarn run v1.22.5 (Netflix#243)
* Workaroung to prevent yarn run v1.22.5 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. from clearing docker container logs * Add comment
1 parent 33fabac commit 18c2a3e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎docker-compose.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ services:
1919
- CONFIG_LOCATION=/apps/consoleme/example_config/example_config_docker_development.yaml
2020
- SETUPTOOLS_USE_DISTUTILS=stdlib
2121
# Run commands to install Consoleme, run the service, and never exit in the event of failure (For dev debugging)
22+
# We're running `FORCE_COLOR=true yarn --cwd /apps/consoleme/ui/ start | cat` instead of
23+
# `yarn --cwd /apps/consoleme/ui/ start` to prevent Yarn from clearing the console, as this affects how docker logs
24+
# are displayed
2225
command: >
2326
bash -c '
2427
pip install argh watchdog;
2528
pip install -e /apps/consoleme/default_plugins;
2629
watchmedo auto-restart --recursive --pattern="*.py;*.yaml" --directory="." python consoleme/__main__.py &
27-
yarn --cwd /apps/consoleme/ui/ start'
30+
FORCE_COLOR=true yarn --cwd /apps/consoleme/ui/ start | cat'
31+
2832
depends_on:
2933
- consoleme-redis
3034
- consoleme-dynamodb

0 commit comments

Comments
 (0)