lumo icon indicating copy to clipboard operation
lumo copied to clipboard

Lumo crashes on official clojure alpine docker image

Open vikeri opened this issue 7 years ago • 4 comments
trafficstars

Based on clojure:lein-2.8.1-alpine

Running: apk add --update nodejs && npm install -g [email protected] works

Then lumo fails with the following error.

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn /usr/lib/node_modules/lumo-cljs/bin/lumo ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
    at Function.Module.runMain (module.js:678:11)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3

vikeri avatar Jun 08 '18 14:06 vikeri

this is unfortunate, and I'm aware of it. The root cause of this issue is that Alpine doesn't include glibc (it uses musl instead) and Lumo is not currently compiled against musl

anmonteiro avatar Jun 08 '18 16:06 anmonteiro

Ok, I solved it by going up to non-alpine: https://hub.docker.com/r/vikeri/clojure-node

vikeri avatar Jun 08 '18 18:06 vikeri

@vikeri there's also a Lumo image at https://hub.docker.com/r/anmonteiro/lumo/

anmonteiro avatar Jun 08 '18 18:06 anmonteiro

@anmonteiro Nice! I can recommend the automated github build flow, then the docker file and corresponding github project show up in dockerhub as well. And you don't have to manually push to dockerhub :)

vikeri avatar Jun 11 '18 10:06 vikeri