HADOOP-15617. Node.js and npm package loading in the Dockerfile failing on branch-2.

Contributed by Akhil PB.
This commit is contained in:
Akhil PB 2019-01-17 10:03:21 +00:00 committed by Steve Loughran
parent 300d65c4d7
commit a5f678f54f
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 8 additions and 6 deletions

View File

@ -137,12 +137,14 @@ ENV MAVEN_OPTS -Xms256m -Xmx1536m
###
# Install node js tools for web UI frameowkr
###
RUN apt-get -y install nodejs && \
ln -s /usr/bin/nodejs /usr/bin/node && \
apt-get -y install npm && \
npm config set strict-ssl false && \
npm install -g bower && \
npm install -g ember-cli
RUN apt-get -q update \
&& apt-get install -y --no-install-recommends nodejs npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/nodejs /usr/bin/node \
&& npm config set strict-ssl false \
&& npm install npm@latest -g \
&& npm install -g jshint
###
# Everything past this point is either not needed for testing or breaks Yetus.