This is an automated email from the ASF dual-hosted git repository.
aw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yetus.git
The following commit(s) were added to refs/heads/master by this push:
new 90fd5f9 YETUS-855. npm does not work in docker image
90fd5f9 is described below
commit 90fd5f952e9d184bbc94cc252d600b6b7fecc5d4
Author: Allen Wittenauer <[email protected]>
AuthorDate: Wed Apr 17 09:43:39 2019 -0700
YETUS-855. npm does not work in docker image
Signed-off-by: Allen Wittenauer <[email protected]>
---
precommit/src/main/shell/test-patch-docker/Dockerfile | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/precommit/src/main/shell/test-patch-docker/Dockerfile
b/precommit/src/main/shell/test-patch-docker/Dockerfile
index e85b187..c563dfd 100644
--- a/precommit/src/main/shell/test-patch-docker/Dockerfile
+++ b/precommit/src/main/shell/test-patch-docker/Dockerfile
@@ -241,12 +241,10 @@ RUN curl -L -s -S \
# Install npm and JSHint
###
# hadolint ignore=DL3008,DL3016
-RUN apt-get -q update \
- && apt-get -q install --no-install-recommends -y nodejs npm \
+RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - \
+ && apt-get -q install --no-install-recommends -y nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* && \
- ln -s /usr/bin/nodejs /usr/bin/node && \
- npm install -g npm@latest && \
npm install -g jshint
####