From d84386ccf7af267a214fc0d646cc1421cb49eaad Mon Sep 17 00:00:00 2001 From: Masatake Iwasaki Date: Tue, 30 Jun 2020 10:47:41 +0900 Subject: [PATCH] HADOOP-17097. start-build-env.sh fails in branch-3.1. (#2108) --- dev-support/docker/Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index e82a14c8ac7..e47a3202c67 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -165,14 +165,14 @@ RUN pip2 install \ RUN pip2 install python-dateutil ### -# Install node.js for web UI framework (4.2.6 ships with Xenial) +# Install node.js 5.x for web UI framework +# (instead of 4.2.6 shipped with Xenial) ### -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 +RUN curl -sL https://deb.nodesource.com/setup_5.x | bash - && \ + apt-get install -y nodejs && \ + npm install -g npm@5.10.0 && \ + npm install -g bower@1.7.7 && \ + npm install -g ember-cli@1.13.14 ### # Avoid out of memory errors in builds