From f82e0730c735ac9b36b8489f59cac692b1b8ca04 Mon Sep 17 00:00:00 2001 From: Cayman Date: Sat, 20 Nov 2021 16:42:59 -0600 Subject: [PATCH] Update nodejs to v16 - gallium (#3440) --- .github/workflows/benchmark.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/release-nightly.yml | 2 +- .github/workflows/release-weekly.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test-sim-merge.yml | 2 +- .github/workflows/test-sim.yml | 2 +- .github/workflows/test-spec.yml | 2 +- .github/workflows/test.yml | 2 +- Dockerfile | 4 ++-- docker/from_source.Dockerfile | 6 +++--- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 659a9b2f8b..48359c3a3d 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 29b10186b5..f99dec540a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index b2ee9a9de1..cb02eb743a 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -20,7 +20,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" registry-url: "https://registry.npmjs.org" - name: Node.js version id: node diff --git a/.github/workflows/release-weekly.yml b/.github/workflows/release-weekly.yml index 4ea76fdcc6..227b73e7fa 100644 --- a/.github/workflows/release-weekly.yml +++ b/.github/workflows/release-weekly.yml @@ -34,7 +34,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" registry-url: "https://registry.npmjs.org" - name: Node.js version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f05554aadf..f0c7f226ae 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,7 +42,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/.github/workflows/test-sim-merge.yml b/.github/workflows/test-sim-merge.yml index 671a098bd9..6ea28493e7 100644 --- a/.github/workflows/test-sim-merge.yml +++ b/.github/workflows/test-sim-merge.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/.github/workflows/test-sim.yml b/.github/workflows/test-sim.yml index 9d7e3da13c..a0c7320fbd 100644 --- a/.github/workflows/test-sim.yml +++ b/.github/workflows/test-sim.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index fdc7571b39..4a9a3a9a19 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd05b6801d..717d8a4a14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: "lts/fermium" + node-version: "lts/gallium" - name: Node.js version id: node run: echo "::set-output name=v8CppApiVersion::$(node --print "process.versions.modules")" diff --git a/Dockerfile b/Dockerfile index 41670276eb..b174082092 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14-alpine as build +FROM node:16-alpine as build WORKDIR /usr/app RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/* @@ -6,7 +6,7 @@ ARG VERSION=latest ENV VERSION=$VERSION RUN npm install @chainsafe/lodestar-cli@$VERSION -FROM node:14-alpine +FROM node:16-alpine WORKDIR /usr/app COPY --from=build /usr/app . diff --git a/docker/from_source.Dockerfile b/docker/from_source.Dockerfile index d920a034cb..bc40fd083e 100644 --- a/docker/from_source.Dockerfile +++ b/docker/from_source.Dockerfile @@ -19,7 +19,7 @@ # ####################### -FROM node:14-alpine as build +FROM node:16-alpine as build WORKDIR /usr/app RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/* @@ -32,7 +32,7 @@ RUN yarn install --non-interactive --frozen-lockfile && yarn build # Copy built src + node_modules to a new layer to prune unnecessary fs # Previous layer weights 7.25GB, while this final 488MB (as of Oct 2020) -FROM node:14-alpine +FROM node:16-alpine WORKDIR /usr/app COPY --from=build /usr/app . @@ -41,4 +41,4 @@ COPY --from=build /usr/app . # since memory may spike during certain network conditions. ENV NODE_OPTIONS=--max_old_space_size=6144 -ENTRYPOINT ["node", "./packages/cli/bin/lodestar"] \ No newline at end of file +ENTRYPOINT ["node", "./packages/cli/bin/lodestar"]