linagora / hublin

DEPRECATED - An easy and free video conference service based on WebRTC
https://hubl.in
Other
1.58k stars 295 forks source link

Docker Build Errors #52

Closed cromulus closed 8 years ago

cromulus commented 8 years ago

Fresh checkout of the repository, trying to build with docker produces this output and eventually fails.

docker build -t linagora/hublin .                                                                                                                                                                                                                                                                     16-11-15 - 14:19:55
Sending build context to Docker daemon 9.298 MB
Step 1 : FROM node:0.10.36
 ---> 600febd9d7b6
Step 2 : MAINTAINER Linagora Folks <hublin@linagora.com>
 ---> Using cache
 ---> 95989c231fad
Step 3 : ADD package.json /src/package.json
 ---> Using cache
 ---> 0da5a8bcc3d0
Step 4 : ADD bower.json /src/bower.json
 ---> Using cache
 ---> f55f2d41119c
Step 5 : ADD .bowerrc /src/.bowerrc
 ---> Using cache
 ---> 28de421f1366
Step 6 : RUN cd /src && npm install bower
 ---> Using cache
 ---> 161871c82c28
Step 7 : RUN cd /src && npm install --production --unsafe-perm
 ---> Running in bba804e9f4ee
npm WARN package.json hublin@0.1.0 No repository field.
npm WARN package.json hublin@0.1.0 No README data
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN optional dep failed, continuing fsevents@1.0.15
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN engine less@2.7.1: wanted: {"node":">=0.12"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN engine email-templates@1.2.0: wanted: {"node":"0.12.x"} (current: {"node":"0.10.36","npm":"2.7.0"})

> awesome-yjs@0.0.0 postinstall /src/node_modules/awesome-yjs
> ./node_modules/bower/bin/bower install

sh: 1: ./node_modules/bower/bin/bower: not found
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> ws@0.5.0 install /src/node_modules/om-websocket-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/src/node_modules/om-websocket-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory '/src/node_modules/om-websocket-server/node_modules/socket.io/node_modules/engine.io/node_modules/ws/build'
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated mongodb@2.2.9: Please upgrade to 2.2.10 or higher
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine request@2.78.0: wanted: {"node":">= 4"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN deprecated tough-cookie@0.12.1: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN engine form-data@2.1.2: wanted: {"node":">= 0.12"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine punycode@2.0.1: wanted: {"node":">=6"} (current: {"node":"0.10.36","npm":"2.7.0"})

> kerberos@0.0.11 install /src/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/src/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/obj.target/kerberos.node
  SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
  COPY Release/kerberos.node
make: Leaving directory '/src/node_modules/mongodb/node_modules/kerberos/build'
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> ws@0.4.31 install /src/node_modules/om-websocket-server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/src/node_modules/om-websocket-server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory '/src/node_modules/om-websocket-server/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build'
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})

> bson@0.2.22 install /src/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/src/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
  SOLINK_MODULE(target) Release/obj.target/bson.node
  SOLINK_MODULE(target) Release/obj.target/bson.node: Finished
  COPY Release/bson.node
make: Leaving directory '/src/node_modules/bson/build'
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})

> kerberos@0.0.11 install /src/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/src/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
  CXX(target) Release/obj.target/kerberos/lib/worker.o
  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
  CC(target) Release/obj.target/kerberos/lib/base64.o
  CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
  SOLINK_MODULE(target) Release/obj.target/kerberos.node
  SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
  COPY Release/kerberos.node
make: Leaving directory '/src/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos/build'
npm WARN engine request@2.78.0: wanted: {"node":">= 4"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine form-data@2.1.2: wanted: {"node":">= 0.12"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine hoek@2.16.3: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine boom@2.10.1: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})
npm WARN engine cryptiles@2.0.5: wanted: {"node":">=0.10.40"} (current: {"node":"0.10.36","npm":"2.7.0"})

> awesome-chat@0.1.0 postinstall /src/node_modules/awesome-chat
> ./node_modules/bower/bin/bower install

sh: 1: ./node_modules/bower/bin/bower: not found

> awesome-collaborative-editor@1.0.0 postinstall /src/node_modules/awesome-collaborative-editor
> ./node_modules/bower/bin/bower install

bower ESUDO         Cannot be run with sudo

Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.

http://www.joyent.com/blog/installing-node-and-npm
https://gist.github.com/isaacs/579814

You can however run a command with sudo using --allow-root option
npm ERR! Linux 4.4.27-moby
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--production" "--unsafe-perm"
npm ERR! node v0.10.36
npm ERR! npm  v2.7.0
npm ERR! code ELIFECYCLE

npm ERR! awesome-yjs@0.0.0 postinstall: `./node_modules/bower/bin/bower install`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the awesome-yjs@0.0.0 postinstall script './node_modules/bower/bin/bower install'.
npm ERR! This is most likely a problem with the awesome-yjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./node_modules/bower/bin/bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls awesome-yjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /src/npm-debug.log
The command '/bin/sh -c cd /src && npm install --production --unsafe-perm' returned a non-zero code: 1
kscc25 commented 8 years ago

Duplicate #44