-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] Update node to fix docker image vulnerabilities #136
Conversation
- Add possibility to output to stdout, instead of just file - Update webpack - Add `--stdout` option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-review
@@ -7,4 +7,4 @@ COPY . . | |||
RUN npm install | |||
RUN npm run bundle | |||
|
|||
ENTRYPOINT ["node", "bin/har-to-k6.js"] | |||
ENTRYPOINT ["node", "bin/har-to-k6.js", "--stdout"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user would add option -o, --output <filename>
, output would not be sent to stdout
resolve: { | ||
fallback: { | ||
fs: false, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change required when updating webpack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self-review#2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works on my computer. 👍
"webpack": "^5.88.2", | ||
"webpack-bundle-analyzer": "^4.9.1", | ||
"webpack-cli": "^5.1.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you no change to parceljs? 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR aims to fix vulnerabilities inherited by
node:16-slim
image.v16 => v18
-s, --stdout
so that docker image can be used without mounting a volume--stdout
README.md
to include docker usageHow to test
README.md
docker build --tag har-to-k6:local .
docker run har-to-k6:local ./example/inconsistent-content-type.har > loadtest.js
loadtest.js
file on the host systemdocker run har-to-k6:local -o loadtest.js ./example/inconsistent-content-type.har
loadtest.js
file inside the container (old default)../bin/har-to-k6
with-stdout
and--output
in different combinations to make sure that we get a desired result