Skip to content

Commit

Permalink
Update dependencies, distros and node versions(#65)
Browse files Browse the repository at this point in the history
* Update to newer distros, dependencies and node versions
  • Loading branch information
andclt committed May 9, 2023
1 parent 55d547a commit b0923e3
Show file tree
Hide file tree
Showing 25 changed files with 1,510 additions and 1,836 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-on-push-and-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
- name: Set up node
uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '16'
- name: Run 'pr' target
run: make pr
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ setup-codebuild-agent:

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

.PHONY: test-integ
test-integ: setup-codebuild-agent
Expand Down
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ You can include this package in your preferred base image to make that base imag

## Requirements
The NodeJS Runtime Interface Client package currently supports NodeJS versions:
- 10.x
- 12.x
- 14.x
- 16.x
- 18.x

## Usage

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

FROM node:12-buster as build-image
FROM node:18-buster as build-image

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

# Grab a fresh slim copy of the image to reduce the final size
FROM node:12-buster-slim
FROM node:18-buster-slim

# Required for Node runtimes which use npm@8.6.0+ because
# by default npm writes logs under /home/.npm and Lambda fs is read-only
ENV NPM_CONFIG_CACHE=/tmp/.npm

# Include global arg in this stage of the build
ARG FUNCTION_DIR
Expand Down
6 changes: 3 additions & 3 deletions THIRD-PARTY-LICENSES
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
** aws-lambda-cpp; version 0.2.6 -- https://github.com/awslabs/aws-lambda-cpp
** aws-lambda-cpp; version 0.2.8 -- https://github.com/awslabs/aws-lambda-cpp

Apache License

Expand Down Expand Up @@ -204,7 +204,7 @@ limitations under the License.

------

** node-gyp; version 7.1.0 -- https://github.com/nodejs/node-gyp
** node-gyp; version 9.3.1 -- https://github.com/nodejs/node-gyp
Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net>

(The MIT License)
Expand Down Expand Up @@ -234,7 +234,7 @@ OTHER DEALINGS IN THE SOFTWARE.

------

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

0 comments on commit b0923e3

Please sign in to comment.