Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch binary in docker image #72

Closed
phtrivier opened this issue Apr 24, 2017 · 2 comments
Closed

Unable to launch binary in docker image #72

phtrivier opened this issue Apr 24, 2017 · 2 comments

Comments

@phtrivier
Copy link

I'm trying to launch the flow-bin wrapper in a docker image (based on alpine)
The binary is available in node_modules (and seems to have the proper size), but spawn always throws a ENOENT.

Error: spawn /build/source/xxxx/node_modules/flow-bin/flow-linux64-v0.44.2/flow ENOENT
    at exports._errnoException (util.js:1022:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:606:11)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
  code: 'ENOENT',
  errno: 'ENOENT',
  syscall: 'spawn /build/source/xxx/node_modules/flow-bin/flow-linux64-v0.44.2/flow',
  path: '/build/source/xxx/node_modules/flow-bin/flow-linux64-v0.44.2/flow'

Could it be related to a missing library in my image (as in #58 ?) How could I find which file is not found ?

@amacleay
Copy link

amacleay commented May 2, 2017

There was a PR recently closed which was meant to demonstrate a possible fix to this issue: #68

I'm not positive, but it seems as though it wasn't actually meant to be merged - perhaps the author thought it was too much of a hack?

edit - there is still an open issue by that author in facebook/flow#3649 , but it hasn't been active in a couple of weeks.

@phtrivier
Copy link
Author

@amacleay yes, I think that's the same issue. I ended up having to rebuild flow myself.
Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants