docker-compose


Trying to figure out why eslint-watch doesn't work with docker-compose correctly


I have been trying to get my front-end working on docker for the past day and I have narrowed down some irregular behaviour to eslint-watch and docker. I have recreated a minimal working repo of the bug I am experiencing.
It seems that linting is somehow staggered when using docker-compose (docker-compose up specifically, docker-compose run seems to work fine). Rather the last console log statements are staggered. I am not sure what it is, but from my reading the best interpretation I can give is that the log messages that should be printed out for the linting are for some reason not flushed out of the node message queue.
I have narrowed down the message printing to the eslint watcher file. If I add in more console logs at the end of this method it prints out the linting fine, but it staggers my logs (i.e. the last logs in execution). Funny thing is, if I save again it flushes the rest of the message queue i.e. the previous logs print out.
To replicate, download my repo, run docker-compose up and edit the test.js file and save. Watch the logs in your terminal for the linting. You will see what I mean.
I hope this is descriptive enough, it's a really strange bug and difficult to explain in a question.
Any ideas how I can actually figure this out?
Finally figured this out. iterm of all things was the culprit. Really weird.
Anyway I was using iTerm2 3.0.9. It seems in iTerm2 3.0.12 (OS 10.8+) this bug is fixed.
https://github.com/rizowski/eslint-watch/issues/94#issuecomment-261287265

Related Links

When are docker-compose on-the-fly volumes reused vs. recreated?
Can .env file make environment variables?
docker copy container data to volume using compose
Docker-compose ps error
hyperledger-fabric getting-started failed to start cli container
how to make docker-compose pull latest images of certain services
network issue in one docker compose with keycloak and tomcat container
Docker compose, set local volume mapping with version 3
version control of docker-compose.yml
Limit resources in docker-compose v3
Docker compose: using relative service address in environment
Azure Container Service: Update Docker-Compose?
Docker compose: doesnt allow to use constraints if you have a env variable set
How to use visual studio docker function on Windows Home edition?
Passing arguments to docker compose file when using it for swarm
How to run ad hoc docker compose commands in Ansible?

Categories

HOME
reactjs
model-view-controller
optimization
azure-active-directory
system-calls
pelican
webvr
conceptual
mifare
salesforce-lightning
query-string
ms-access-2010
token
jpql
fetch
decoding
hdf5
google-closure-compiler
ampscript
ejb-3.1
sha
rancher
sasl
orgchart
spock
restangular
csproj
mplab
imdb
microstrategy
strategy-pattern
motion
idea-plugin
server-side-swift
icu
test-kitchen
bootstrap-carousel
html-entities
azure-data-catalog
reqif
remap
confluent
openxava
perldoc
enet
boost-regex
totalview
group
easy68k
papyrus
csc
supervised-learning
database-administration
calc
ideavim
askbot
ios8-share-extension
personality-insights
windows-phone-8-emulator
consul-template
xml-simple
tokudb
stereotype
targetprocess
vectordrawable
maven-archetype
chrome-mobile
nexusdb
google-experiments
crystal-reports-7
growl
api-eveonline
system.net
android-relativelayout
html5-filesystem
mongoid4
nomachine
fade
dylan
static-class
wpa
mandelbrot
maven-webstart-plugin
pyxplot
mosix
exi
mysql2
boost.build
big-endian
nude.js
code-organization
flexbuilder
jqtransform
meego-harmattan
cpack
database-agnostic
p4.net
morfik
coderush-xpress
file-icons
cstring

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App