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

JHipster - Doubts in the development using Microservices Architecture
Gogs + Drone getsockopt: connection refused
Concourse result keeps loading
Docker-compose: AttributeError: 'module' object has no attribute 'ssl'
scaling a service with docker compose
Docker Compose apparently ignores COMPOSE_FILE
Where does Docker install gems on a mac
What is the difference between docker-machine and docker-compose?
Docker Compose port issue. Cannot launch docker project on localhost
Name an image built from running a docker-compose file
Race conditions after changing names in docker-compose.yml
Docker compose - image not found
How to work out the hostname that compose gives containers?
docker-compose restart container if service is dead
Swarm scheduling not working as expected using filters in compose file
issues in buiding Slate with Docker

Categories

HOME
macros
ns2
c++builder
terminal
mediarecorder
swap
segmentation-fault
rename
mongoimport
distinct
fine-uploader
element
logstash-configuration
template10
project-reactor
conditional-formatting
project-structure
summernote
android-wifi
gomobile
serenity-js
beaker-notebook
ithit-webdav-server
windowserror
setup-project
windows-10-mobile
paper-trail-gem
undo
wercker
availability
webmock
dropdownbox
certbot
pyenv
pymunk
azure-vm-scale-set
leaderboard
icu
rbac
android-graphview
quartz
compiler-warnings
definition
rexx
evaluation
google-scholar
alarmmanager
easy68k
virtualenvwrapper
hdr
jde
fadein
dday
videoview
commercetools
php-gd
first-order-logic
xml-simple
stereotype
data-representation
sicstus-prolog
conkeror
dojox.grid
random-access
jsonschema2pojo
gnip
dirname
worklight-appcenter
disparity-mapping
drawable
switchpreference
enquire.js
nop
svg-android
xcode5.1
raddatepicker
pyxplot
asp.net-4.0
bho
architectural-patterns
zepto
libx264
derived-class
custom-cursor
unordered-set
joomla1.7
jqzoom
zend-validate
xpolog
windows-xp-embedded
netduino
nbehave
rollover
oaw
webdb
mysql-pconnect
dgml
pixel-bender
expander
weak-typing
memory-consumption

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