-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Node14 from integ tests matrix since it is deprecated
- Loading branch information
Showing
13 changed files
with
4 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,6 @@ batch: | |
DISTRO_VERSION: | ||
- "3.16" | ||
RUNTIME_VERSION: | ||
- "14" | ||
- "16" | ||
- "18" | ||
phases: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ batch: | |
- "stream8" | ||
- "stream9" | ||
RUNTIME_VERSION: | ||
- "14" | ||
- "16" | ||
- "18" | ||
- "20" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,6 @@ batch: | |
- "buster" | ||
- "bullseye" | ||
RUNTIME_VERSION: | ||
- "14" | ||
- "16" | ||
- "18" | ||
- "20" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ batch: | |
- "20.04" | ||
- "22.04" | ||
RUNTIME_VERSION: | ||
- "14" | ||
- "16" | ||
phases: | ||
pre_build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,6 @@ RUN mkdir -p ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR}/deps/aws-lambda-ric | ||
COPY . . | ||
|
||
# Node14 uses [email protected] by default which will downgrade permissions, if it's root, | ||
# before running any build scripts: https://github.com/npm/npm/issues/3497 | ||
# Starting from [email protected], when npm is run as root, | ||
# scripts are always run with the effective uid and gid of the working directory owner. | ||
RUN if [[ $(node -v | cut -c 1-3) == "v14" ]] ; then npm install -g npm@7 ; fi | ||
RUN make build && \ | ||
npm run test:unit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,8 @@ ARG DISTRO_VERSION | |
# Install Py3 required to build Node16+ | ||
RUN if [[ "${DISTRO_VERSION}" == "2" ]] ; then amazon-linux-extras install python3.8 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1 ; fi | ||
# Install NodeJS | ||
RUN if [[ "${RUNTIME_VERSION}" == "14" ]]; then \ | ||
yum install -y tar gzip xz && \ | ||
AARCH="$([[ "$(arch)" == "x86_64" ]] && echo "x64" || echo "arm64")" && \ | ||
NODE_URL="https://nodejs.org/download/release/v14.21.3/node-v14.21.3-linux-$AARCH.tar.xz" && \ | ||
curl -fL "$NODE_URL" | tar -C /usr --strip-components 1 -xJf - && \ | ||
yum clean all -q && rm -rf /var/cache/yum ; \ | ||
else \ | ||
yum install https://rpm.nodesource.com/pub_${RUNTIME_VERSION}.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y && \ | ||
yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1s ; \ | ||
fi | ||
RUN yum install https://rpm.nodesource.com/pub_${RUNTIME_VERSION}.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y && \ | ||
yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1s; | ||
|
||
# Stage 2 - build function and dependencies | ||
FROM node-amazonlinux AS build-image | ||
|
@@ -50,11 +42,6 @@ RUN mkdir -p ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR}/deps/aws-lambda-ric | ||
COPY . . | ||
|
||
# Node14 uses [email protected] by default which will downgrade permissions, if it's root, | ||
# before running any build scripts: https://github.com/npm/npm/issues/3497 | ||
# Starting from [email protected], when npm is run as root, | ||
# scripts are always run with the effective uid and gid of the working directory owner. | ||
RUN if [[ $(node -v | cut -c 1-3) == "v14" ]] ; then npm install -g npm@7 ; fi | ||
RUN make build && \ | ||
npm run test:unit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,6 @@ RUN mkdir -p ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR}/deps/aws-lambda-ric | ||
COPY . . | ||
|
||
# Node14 uses [email protected] by default which will downgrade permissions, if it's root, | ||
# before running any build scripts: https://github.com/npm/npm/issues/3497 | ||
# Starting from [email protected], when npm is run as root, | ||
# scripts are always run with the effective uid and gid of the working directory owner. | ||
RUN if [[ $(node -v | cut -c 1-3) == "v14" ]] ; then npm install -g npm@7 ; fi | ||
RUN make build && \ | ||
npm run test:unit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,6 @@ RUN mkdir -p ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR}/deps/aws-lambda-ric | ||
COPY . . | ||
|
||
# Node14 uses [email protected] by default which will downgrade permissions, if it's root, | ||
# before running any build scripts: https://github.com/npm/npm/issues/3497 | ||
# Starting from [email protected], when npm is run as root, | ||
# scripts are always run with the effective uid and gid of the working directory owner. | ||
RUN if [ $(node -v | cut -c 1-3) = "v14" ] ; then npm install -g npm@7 ; fi | ||
RUN make build && \ | ||
npm run test:unit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,11 +48,6 @@ RUN mkdir -p ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR}/deps/aws-lambda-ric | ||
COPY . . | ||
|
||
# Node14 uses [email protected] by default which will downgrade permissions, if it's root, | ||
# before running any build scripts: https://github.com/npm/npm/issues/3497 | ||
# Starting from [email protected], when npm is run as root, | ||
# scripts are always run with the effective uid and gid of the working directory owner. | ||
RUN if [ $(node -v | cut -c 1-3) = "v14" ] ; then npm install -g npm@7 ; fi | ||
RUN make build && \ | ||
npm run test:unit | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,6 @@ RUN mkdir -p ${FUNCTION_DIR} | |
WORKDIR ${FUNCTION_DIR}/deps/aws-lambda-ric | ||
COPY . . | ||
|
||
# Node14 uses [email protected] by default which will downgrade permissions, if it's root, | ||
# before running any build scripts: https://github.com/npm/npm/issues/3497 | ||
# Starting from [email protected], when npm is run as root, | ||
# scripts are always run with the effective uid and gid of the working directory owner. | ||
RUN if [[ $(node -v | cut -c 1-3) == "v14" ]] ; then npm install -g npm@7 ; fi | ||
RUN make build && \ | ||
npm run test:unit | ||
|
||
|