You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2021/03/24 07:32:50 UTC

[hadoop] 03/03: YARN-10036. Install yarnpkg and upgrade nodejs in Dockerfile (#1772)

This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit 332c2a637ddff31844c60bf22b0791e139e9a8bc
Author: Akira Ajisaka <aa...@apache.org>
AuthorDate: Mon Dec 23 10:30:26 2019 +0900

    YARN-10036. Install yarnpkg and upgrade nodejs in Dockerfile (#1772)
    
    (cherry picked from commit bc825b9628f2fca9d250f91728d4aebb155f1331)
    (cherry picked from commit 710a24b6cd7a9895a131471377f0af52f7c098d9)
    
     Conflicts:
    	dev-support/docker/Dockerfile
---
 dev-support/docker/Dockerfile | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile
index 66397a8..1a54d9c 100644
--- a/dev-support/docker/Dockerfile
+++ b/dev-support/docker/Dockerfile
@@ -175,17 +175,23 @@ RUN pip2 install \
 RUN pip2 install python-dateutil==2.7.3
 
 ###
-# Install node.js 5.x for web UI framework
-# (instead of 4.2.6 shipped with Xenial)
+# Install node.js 8.17.0 for web UI framework (4.2.6 ships with Xenial)
 ###
-# hadolint ignore=DL3008, DL3016
-RUN apt-get -q update \
-    && apt-get install -y --no-install-recommends nodejs npm \
+RUN curl -L -s -S https://deb.nodesource.com/setup_8.x | bash - \
+    && apt-get install -y --no-install-recommends nodejs=8.17.0-1nodesource1 \
     && apt-get clean \
     && rm -rf /var/lib/apt/lists/* \
-    && ln -s /usr/bin/nodejs /usr/bin/node \
-    && npm install npm@latest -g \
-    && npm install -g jshint
+    && npm install -g bower@1.8.8
+
+###
+## Install Yarn 1.12.1 for web UI framework
+####
+RUN curl -s -S https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
+    && echo 'deb https://dl.yarnpkg.com/debian/ stable main' > /etc/apt/sources.list.d/yarn.list \
+    && apt-get -q update \
+    && apt-get install -y --no-install-recommends yarn=1.12.1-1 \
+    && apt-get clean \
+    && rm -rf /var/lib/apt/lists/*
 
 ###
 # Install hadolint

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org