Skip to content

Commit

Permalink
Upgrade to latest LTS for node and npm (#1922)
Browse files Browse the repository at this point in the history
* An attempt to upgrade to node 10 LTS for JENKINS-56316

* builds with node 10

* use exact versions for dependencies
  • Loading branch information
halkeye authored Mar 5, 2019
1 parent 6f3cc02 commit 09e3b2e
Show file tree
Hide file tree
Showing 23 changed files with 28,462 additions and 23,678 deletions.
9 changes: 2 additions & 7 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:16.04

ENV MAVEN_VERSION 3.5.4
ENV NODE_VERSION 6.4.0
ENV NODE_VERSION 10.13.0
ENV PHANTOMJS_VERSION 2.1.1
ARG UID=1000
ARG GID=1000
Expand All @@ -25,6 +25,7 @@ RUN apt-get update -qqy \
python \
iputils-ping \
locales \
libsass-dev \
&& rm -rf /var/lib/apt/lists/* \
&& sed -i 's/securerandom\.source=file:\/dev\/random/securerandom\.source=file:\/dev\/urandom/' ./usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/java.security

Expand All @@ -48,12 +49,6 @@ ENV MAVEN_HOME /usr/share/maven
RUN wget --no-verbose https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz -O /opt/nodejs.tar.xz
RUN tar -C /usr/local --strip-components 1 -xJf /opt/nodejs.tar.xz
RUN mkdir /.npm && chmod 777 /.npm
# Fix bug https://github.com/npm/npm/issues/9863
RUN cd $(npm root -g)/npm \
&& npm install fs-extra \
&& sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js
# Update to latest version so optional dependencies + shrinkwrap work
RUN npm install -g [email protected]

#=============================================
# Misc packages needed by the ATH
Expand Down
3 changes: 0 additions & 3 deletions acceptance-tests/package-lock.json

This file was deleted.

257 changes: 0 additions & 257 deletions bin/package-lock.json

This file was deleted.

Loading

0 comments on commit 09e3b2e

Please sign in to comment.