{"action":"created","issue":{"url":"https://api.github.com/repos/steelbrain/linter/issues/1262","repository_url":"https://api.github.com/repos/steelbrain/linter","labels_url":"https://api.github.com/repos/steelbrain/linter/issues/1262/labels{/name}","comments_url":"https://api.github.com/repos/steelbrain/linter/issues/1262/comments","events_url":"https://api.github.com/repos/steelbrain/linter/issues/1262/events","html_url":"https://github.com/steelbrain/linter/issues/1262","id":185735608,"number":1262,"title":"Usage with cached modules in docker container","user":{"login":"slavab89","id":10363263,"avatar_url":"https://avatars.githubusercontent.com/u/10363263?v=3","gravatar_id":"","url":"https://api.github.com/users/slavab89","html_url":"https://github.com/slavab89","followers_url":"https://api.github.com/users/slavab89/followers","following_url":"https://api.github.com/users/slavab89/following{/other_user}","gists_url":"https://api.github.com/users/slavab89/gists{/gist_id}","starred_url":"https://api.github.com/users/slavab89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavab89/subscriptions","organizations_url":"https://api.github.com/users/slavab89/orgs","repos_url":"https://api.github.com/users/slavab89/repos","events_url":"https://api.github.com/users/slavab89/events{/privacy}","received_events_url":"https://api.github.com/users/slavab89/received_events","type":"User","site_admin":false},"labels":[{"id":91317642,"url":"https://api.github.com/repos/steelbrain/linter/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-27T17:44:02Z","updated_at":"2016-10-27T18:21:48Z","closed_at":"2016-10-27T17:51:18Z","body":"I hope that this issue / question is in the right place while i'm not sure if its even somehow possible.\r\n\r\nWhen using docker, the common way to build the container is by using the following way:\r\nhttp://bitjudo.com/blog/2014/03/13/building-efficient-dockerfiles-node-dot-js/\r\nMeaning caching the node_modules.\r\nOnce those modules are cached, they are saved inside the container while the user's project directory stays clean without the node_modules directory.\r\nThis is nice and sweet but then comes the issue with linting code through Atom. Because there are no modules installed locally, then \"special\" linting rules that might be defined in the project might fail to run because they need to corresponding module that cannot be loaded.\r\n\r\nIs there some solution to this? Somehow to tell the atom linter to get the results through some container thats running?"},"comment":{"url":"https://api.github.com/repos/steelbrain/linter/issues/comments/256727808","html_url":"https://github.com/steelbrain/linter/issues/1262#issuecomment-256727808","issue_url":"https://api.github.com/repos/steelbrain/linter/issues/1262","id":256727808,"user":{"login":"steelbrain","id":4278113,"avatar_url":"https://avatars.githubusercontent.com/u/4278113?v=3","gravatar_id":"","url":"https://api.github.com/users/steelbrain","html_url":"https://github.com/steelbrain","followers_url":"https://api.github.com/users/steelbrain/followers","following_url":"https://api.github.com/users/steelbrain/following{/other_user}","gists_url":"https://api.github.com/users/steelbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/steelbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steelbrain/subscriptions","organizations_url":"https://api.github.com/users/steelbrain/orgs","repos_url":"https://api.github.com/users/steelbrain/repos","events_url":"https://api.github.com/users/steelbrain/events{/privacy}","received_events_url":"https://api.github.com/users/steelbrain/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T18:21:48Z","updated_at":"2016-10-27T18:21:48Z","body":"I've posted a small isolated setup in a [configurations gist](https://gist.github.com/steelbrain/b05837a449d69b706e1688514224f6c5). We are using one `Dockerfile` for each service.\r\n\r\nA relatively important note is that using the Native Docker on both OSX and Windows can lead to a LOT of issues, most notably the FS events not being triggered (fs watchers fail). We work it around by putting everything in vagrant.\r\n\r\nSo our team only has to do `brew cask install vagrant virtualbox` and then `vagrant up`, and everything including docker is installed automatically. Combining vagrant with [`vagrant-docker-compose`](https://github.com/leighmcculloch/vagrant-docker-compose) install vagrant on the guest VM automatically further simplifying the process.\r\n\r\nInstalling the node modules locally, and then building by copy/pasting them into the container saves from a lot of \"Works on my machine\" scenarios because essentially the modules between your dev and production environment are exactly the same."}}
{"actor":{"display_login":"steelbrain"}}