From 9bfda1c79f067994aed5d2391ff5eea7ffff1ec6 Mon Sep 17 00:00:00 2001 From: "Benjamin P. Jung" Date: Sun, 16 Jun 2019 09:15:48 +0200 Subject: [PATCH] Update all dependencies and bundled Helm binary. --- CHANGELOG.md | 7 ++++++ Dockerfile | 12 +++++----- out.ts | 2 +- package-lock.json | 57 +++++++++++++++++++++-------------------------- package.json | 18 +++++++-------- 5 files changed, 49 insertions(+), 47 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71a10ce..4966564 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [0.6.0] - 2019-06-16 + +### Updated + +- Node.js runtime has been updated to v12.4.0 +- Included Helm binary has been updated to v2.14.1 + ## [0.5.0] - 2019-01-29 ### Updated diff --git a/Dockerfile b/Dockerfile index 1b743e4..8b05742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM node:11.8.0 as builder +FROM node:12.4.0 as builder RUN apt-get -y update && apt-get -y install curl gzip tar unzip -ARG HELM_DOWNLOAD_URL="https://storage.googleapis.com/kubernetes-helm/helm-v2.12.3-linux-amd64.tar.gz" +ARG HELM_DOWNLOAD_URL="https://get.helm.sh/helm-v2.14.1-linux-amd64.tar.gz" RUN curl -s -j -k -L "${HELM_DOWNLOAD_URL}" > /tmp/helm.tar.gz -RUN echo "3425a1b37954dabdf2ba37d5d8a0bd24a225bb8454a06f12b115c55907809107 /tmp/helm.tar.gz" | sha256sum -c +RUN echo "804f745e6884435ef1343f4de8940f9db64f935cd9a55ad3d9153d064b7f5896 /tmp/helm.tar.gz" | sha256sum -c RUN mkdir -p /data WORKDIR /data RUN gunzip -c "/tmp/helm.tar.gz" | tar -xf - \ @@ -13,7 +13,7 @@ COPY . /src WORKDIR /src RUN npm -s install && npm -s run build && npm -s test && npm -s pack && mv cathive-concourse-chartmuseum-resource-*.tgz /data/cathive-concourse-chartmuseum-resource.tgz -FROM node:11.8.0-alpine +FROM node:12.4.0-alpine RUN apk add --no-cache gnupg ca-certificates COPY --from=builder "/data/helm" "/usr/local/bin/helm" COPY --from=builder "/data/cathive-concourse-chartmuseum-resource.tgz" "/tmp/cathive-concourse-chartmuseum-resource.tgz" @@ -26,8 +26,8 @@ RUN npm -s install -g /tmp/cathive-concourse-chartmuseum-resource.tgz \ ENV PATH="/usr/local/bin:/usr/bin:/bin" RUN helm init --client-only LABEL maintainer="Benjamin P. Jung " \ - version="0.5.0" \ - org.concourse-ci.target-version="4.2.2" \ + version="0.6.0" \ + org.concourse-ci.target-version="5.3.0" \ org.concourse-ci.resource-id="chartmuseum" \ org.concourse-ci.resource-name="ChartMuseum package management" \ org.concourse-ci.resource-homepage="https://github.com/cathive/concourse-chartmuseum-resource" diff --git a/out.ts b/out.ts index 3a9d272..d6a7ad6 100644 --- a/out.ts +++ b/out.ts @@ -297,7 +297,7 @@ export default async function out(): Promise<{ data: Object, cleanupCallback: (( (async () => { process.on("unhandledRejection", err => { - process.stderr.write(err); + process.stderr.write(err != null ? err.toString() : "UNKNOWN ERROR"); process.exit(-1); }); try { diff --git a/package-lock.json b/package-lock.json index b02df8f..b87fc19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@cathive/concourse-chartmuseum-resource", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -28,15 +28,15 @@ "dev": true }, "@types/node": { - "version": "10.12.19", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.19.tgz", - "integrity": "sha512-2NVovndCjJQj6fUUn9jCgpP4WSqr+u1SoUZMZyJkhGeBFsm6dE46l31S7lPUYt9uQ28XI+ibrJA1f5XyH5HNtA==", + "version": "12.0.8", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.8.tgz", + "integrity": "sha512-b8bbUOTwzIY3V5vDTY1fIJ+ePKDUBqt2hC2woVGotdQQhG/2Sh62HOKHrT7ab+VerXAcPyAiTEipPu/FsreUtg==", "dev": true }, "@types/node-fetch": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.1.4.tgz", - "integrity": "sha512-tR1ekaXUGpmzOcDXWU9BW73YfA2/VW1DF1FH+wlJ82BbCSnWTbdX+JkqWQXWKIGsFPnPsYadbXfNgz28g+ccWg==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.3.7.tgz", + "integrity": "sha512-+bKtuxhj/TYSSP1r4CZhfmyA0vm/aDRQNo7vbAgf6/cZajn0SAniGGST07yvI4Q+q169WTa2/x9gEHfJrkcALw==", "dev": true, "requires": { "@types/node": "*" @@ -53,15 +53,15 @@ } }, "@types/semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-41qEJgBH/TWgo5NFSvBCJ1qkoi3Q6ONSF2avrHq1LVEZfYpdHmj0y9SuTK+u9ZhG1sYQKBL1AWXKyLWP4RaUoQ==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-6.0.0.tgz", + "integrity": "sha512-OO0srjOGH99a4LUN2its3+r6CBYcplhJ466yLqs+zvAWgphCpS8hYZEZ797tRDP/QKcqTdb/YCN6ifASoAWkrQ==", "dev": true }, "@types/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/@types/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha1-EHPEvIJHVK49EM+riKsCN7qWTk0=", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@types/tmp/-/tmp-0.1.0.tgz", + "integrity": "sha512-6IwZ9HzWbCq6XoQWhxLpDjuADodH/MKXRUIDFudvgjcVdjFknvmR+DNsoUeer4XPrEnrZs04Jj+kfV9pFsrhmA==", "dev": true }, "@types/yamljs": { @@ -138,9 +138,9 @@ } }, "node-fetch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.3.0.tgz", - "integrity": "sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA==" + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", + "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" }, "once": { "version": "1.4.0", @@ -150,11 +150,6 @@ "wrappy": "1" } }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" - }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -184,9 +179,9 @@ } }, "semver": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", - "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.1.1.tgz", + "integrity": "sha512-rWYq2e5iYW+fFe/oPPtYJxYgjBm8sC4rmoGdUOgBB7VnwKt6HrL793l2voH1UlsyYZpJ4g0wfjnTEO1s1NP2eQ==" }, "sprintf-js": { "version": "1.0.3", @@ -194,17 +189,17 @@ "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" }, "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.1.0.tgz", + "integrity": "sha512-J7Z2K08jbGcdA1kkQpJSqLF6T0tdQqpR2pnSUXsIchbPdTI9v3e85cLW0d6WDhwuAleOV71j2xWs8qMPfK7nKw==", "requires": { - "os-tmpdir": "~1.0.2" + "rimraf": "^2.6.3" } }, "typescript": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.2.4.tgz", - "integrity": "sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz", + "integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==", "dev": true }, "wrappy": { diff --git a/package.json b/package.json index 92f63b6..d9d46c8 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,23 @@ { "private": true, "name": "@cathive/concourse-chartmuseum-resource", - "version": "0.5.0", + "version": "0.6.0", "main": "./index.js", "dependencies": { - "node-fetch": "^2.3.0", + "node-fetch": "^2.6.0", "rimraf": "^2.6.3", - "semver": "^5.6.0", - "tmp": "^0.0.33", + "semver": "^6.1.1", + "tmp": "^0.1.0", "yamljs": "^0.3.0" }, "devDependencies": { - "@types/node": "^10.12.19", - "@types/node-fetch": "^2.1.4", + "@types/node": "^12.0.8", + "@types/node-fetch": "^2.3.7", "@types/rimraf": "^2.0.2", - "@types/semver": "^5.5.0", - "@types/tmp": "^0.0.33", + "@types/semver": "^6.0.0", + "@types/tmp": "^0.1.0", "@types/yamljs": "^0.2.30", - "typescript": "^3.2.4" + "typescript": "^3.5.2" }, "scripts": { "build": "tsc",