jenkins-infra / uplink

A simple telemetry service for Jenkins instances.
https://uplink.jenkins.io/
GNU Affero General Public License v3.0
1 stars 2 forks source link

fix: update package-json.lock, switch to nodejs 10 and use 'npm ci' #46

Closed lemeurherve closed 1 year ago

lemeurherve commented 1 year ago

Used docker run -it --entrypoint=/bin/bash -v ./:/tmp/node node:9 then cd /tmp/node && npm install pg:8.7.1 to update the package-lock.json, and updated the Dockerfile to use nodejs 10 like in the ./tools/node script called by the Makefile.

Replaced npm install by npm ci (introduced in npm version 5.7.0, while the last nodejs 9 image contains npm 5.6.0) to get deterministic builds based on package-lock.json, only updated by contributors of this repo.

lemeurherve commented 1 year ago

Splited in #49, #51 & #52