-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The "node14" container is now just named "node" and is based on Node.js v22. - Enabled cache mounts for Apt, Pip, and NPM. - Upgraded ESLint (and dependencies) to work with Node.js v22.
- Loading branch information
1 parent
3f96f21
commit 0b14168
Showing
6 changed files
with
47 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# syntax=docker/dockerfile:1 | ||
FROM node:22-bookworm-slim | ||
|
||
ARG MAINTAINER | ||
LABEL maintainer=$MAINTAINER | ||
|
||
# hadolint ignore=DL3008,DL3016 | ||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install python3 python3-pip git -y --no-install-recommends && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Upgrade npm for the node_dependencies plugin. | ||
# Install eslint and dependencies for eslint plugin. | ||
WORKDIR /opt/eslint | ||
RUN --mount=type=cache,target=/root/.npm,sharing=locked \ | ||
npm install -g [email protected] && \ | ||
npm install \ | ||
[email protected] \ | ||
[email protected] \ | ||
[email protected] \ | ||
@typescript-eslint/[email protected] | ||
|
||
# Provide our own eslint wrapper to set the plugin search directory. | ||
# We assume that eslint will always be called with absolute paths. | ||
RUN printf "#!/bin/sh\ncd /opt/eslint\n"'npx eslint --resolve-plugins-relative-to=/opt/eslint "$@"' > /usr/local/bin/eslint && \ | ||
chmod 755 /usr/local/bin/eslint | ||
|
||
# Install nodejsscan for the nodejsscan plugin. | ||
# hadolint ignore=DL3013,DL3042 | ||
RUN --mount=type=cache,target=/root/.cache/pip \ | ||
pip install --break-system-packages --upgrade pip setuptools && \ | ||
pip install --break-system-packages \ | ||
nodejsscan |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ESLint Static Scanner", | ||
"type": "static_analysis", | ||
"image": "$ECR/artemis/node:14-latest", | ||
"image": "$ECR/artemis/node:latest", | ||
"runner": "boxed" | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "NPM Audit Scanner", | ||
"type": "vulnerability", | ||
"image": "$ECR/artemis/node:14-latest", | ||
"image": "$ECR/artemis/node:latest", | ||
"runner": "boxed", | ||
"writable": true | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "Nodejsscan", | ||
"type": "static_analysis", | ||
"image": "$ECR/artemis/node:14-latest", | ||
"image": "$ECR/artemis/node:latest", | ||
"runner": "boxed" | ||
} |