You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2018/07/18 22:04:00 UTC

[jira] [Updated] (HADOOP-15617) Reduce node.js and npm package loading in the Dockerfile

     [ https://issues.apache.org/jira/browse/HADOOP-15617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer updated HADOOP-15617:
--------------------------------------
    Description: 
{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.


  was:
{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.



> 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
>            Reporter: Allen Wittenauer
>            Priority: Major
>
> {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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org