[ 
https://issues.apache.org/jira/browse/HADOOP-15617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16744217#comment-16744217
 ] 

Steve Loughran commented on HADOOP-15617:
-----------------------------------------

Cert trust failure. I'm guessing that this is because the older Ubuntu image 
doesn't have the right cert of certificates -hence the option in branch-2 to 
turn ofd cert checks: {{npm config set strict-ssl false}}

Add that in? 

{code}
Setting up npm (1.3.10~dfsg-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...
npm http GET https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm
npm http GET https://registry.npmjs.org/npm
npm ERR! Error: CERT_UNTRUSTED
npm ERR!     at SecurePair.<anonymous> (tls.js:1370:32)
npm ERR!     at SecurePair.EventEmitter.emit (events.js:92:17)
npm ERR!     at SecurePair.maybeInitFinished (tls.js:982:10)
npm ERR!     at CleartextStream.read [as _read] (tls.js:469:13)
npm ERR!     at CleartextStream.Readable.read (_stream_readable.js:320:10)
npm ERR!     at EncryptedStream.write [as _write] (tls.js:366:25)
npm ERR!     at doWrite (_stream_writable.js:223:10)
npm ERR!     at writeOrBuffer (_stream_writable.js:213:5)
npm ERR!     at EncryptedStream.Writable.write (_stream_writable.js:180:11)
npm ERR!     at write (_stream_readable.js:583:24)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 4.4.0-138-generic
{code}

> Reduce node.js and npm package loading in the Dockerfile
> --------------------------------------------------------
>
>                 Key: HADOOP-15617
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15617
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build
>    Affects Versions: 2.9.3
>            Reporter: Allen Wittenauer
>            Assignee: Akhil PB
>            Priority: Major
>         Attachments: HADOOP-15617-branch-2-001.patch, 
> HADOOP-15617-branch-2-002.patch
>
>
> {code}
> RUN apt-get -y install nodejs && \
>     ln -s /usr/bin/nodejs /usr/bin/node && \
>     apt-get -y install npm && \
>     npm install npm@latest -g && \
>     npm install -g bower && \
>     npm install -g ember-cli
> {code}
> should get reduced to
> {code}
> RUN apt-get -y install nodejs && \
>     ln -s /usr/bin/nodejs /usr/bin/node && \
>     apt-get -y install npm && \
>     npm install npm@latest -g
> {code}
> The locally installed versions of bower and ember-cli aren't being used 
> anymore.  Removing these cuts the docker build time significantly.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to