Skip to content

Commit b0923e3

Browse files
authored
Update dependencies, distros and node versions(#65)
* Update to newer distros, dependencies and node versions
1 parent 55d547a commit b0923e3

25 files changed

+1510
-1836
lines changed

Diff for: .github/workflows/test-on-push-and-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
- name: Set up node
1616
uses: actions/setup-node@v1
1717
with:
18-
node-version: '12'
18+
node-version: '16'
1919
- name: Run 'pr' target
2020
run: make pr

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ setup-codebuild-agent:
1717

1818
.PHONY: test-smoke
1919
test-smoke: setup-codebuild-agent
20-
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.2.yml alpine 3.12 14
20+
CODEBUILD_IMAGE_TAG=codebuild-agent test/integration/codebuild-local/test_one.sh test/integration/codebuild/buildspec.os.alpine.1.yml alpine 3.16 18
2121

2222
.PHONY: test-integ
2323
test-integ: setup-codebuild-agent

Diff for: README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ You can include this package in your preferred base image to make that base imag
1010

1111
## Requirements
1212
The NodeJS Runtime Interface Client package currently supports NodeJS versions:
13-
- 10.x
14-
- 12.x
1513
- 14.x
14+
- 16.x
15+
- 18.x
1616

1717
## Usage
1818

@@ -55,7 +55,7 @@ Example Dockerfile (to keep the image light we used a multi-stage build):
5555
# Define custom function directory
5656
ARG FUNCTION_DIR="/function"
5757

58-
FROM node:12-buster as build-image
58+
FROM node:18-buster as build-image
5959

6060
# Include global arg in this stage of the build
6161
ARG FUNCTION_DIR
@@ -81,7 +81,11 @@ WORKDIR ${FUNCTION_DIR}
8181
RUN npm install
8282

8383
# Grab a fresh slim copy of the image to reduce the final size
84-
FROM node:12-buster-slim
84+
FROM node:18-buster-slim
85+
86+
# Required for Node runtimes which use [email protected]+ because
87+
# by default npm writes logs under /home/.npm and Lambda fs is read-only
88+
ENV NPM_CONFIG_CACHE=/tmp/.npm
8589

8690
# Include global arg in this stage of the build
8791
ARG FUNCTION_DIR

Diff for: THIRD-PARTY-LICENSES

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
** aws-lambda-cpp; version 0.2.6 -- https://github.com./awslabs/aws-lambda-cpp
1+
** aws-lambda-cpp; version 0.2.8 -- https://github.com./awslabs/aws-lambda-cpp
22

33
Apache License
44

@@ -204,7 +204,7 @@ limitations under the License.
204204

205205
------
206206

207-
** node-gyp; version 7.1.0 -- https://github.com./nodejs/node-gyp
207+
** node-gyp; version 9.3.1 -- https://github.com./nodejs/node-gyp
208208
Copyright (c) 2012 Nathan Rajlich <[email protected]>
209209

210210
(The MIT License)
@@ -234,7 +234,7 @@ OTHER DEALINGS IN THE SOFTWARE.
234234

235235
------
236236

237-
** node-addon-api; version 3.0.1 -- https://github.com./nodejs/node-addon-api
237+
** node-addon-api; version 6.0.0 -- https://github.com./nodejs/node-addon-api
238238
The MIT License (MIT)
239239
Copyright (c) 2017 Node.js API collaborators
240240
Node.js API collaborators listed at

0 commit comments

Comments
 (0)