-
Notifications
You must be signed in to change notification settings - Fork 386
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
Remove curl & Nano from standard conatiner builds #338
Comments
Please do not remove curl, I have many automations using curl getting json date from websites and (more important for me) from internal components like my not well supported thermostat and more. |
Why can't you use the http-request node instead of shelling out to curl? |
How to use http-request node doing this? : curl -f -k -H 'Accept: application/json' -H 'Authorization: Bearer [LONG TOKEN]' -X GET https://192.168.xx.xx/api/v1/production/inverters |
You can set headers on in the config for the http-request node or pass them in as And you can set the http-request node to not validate the server cerificate |
You may also need to tell the http-request not not to validate the the response headers if the device isn't following the spec, but that option has been included in the 3.1.x stream since it was a security update to NodeJS 18 iirc |
Thanks but is goes beond me I am affraid. |
You can create simple Dockerfile which will install curl to your image: FROM nodered/node-red:latest
RUN apk update && apk add curl |
In my experience (with IOTstack on Raspberry Pis and Debian Proxmox guests - but YMMV), it needs at least: FROM nodered/node-red:latest
USER root
RUN apk add --no-cache curl
USER node-red Why? You need to be root to run The |
Harmonises list of add-on nodes across old-menu and master branches. I've tried to stay away from SensorsIot#755. This includes removal of `node-red-node-rbe` which has been replaced by the built-in Filter node. See: - [Release notes](https://nodered.org/blog/2021/07/20/version-2-0-released#renamed-rbe-node-to-filter-node) Migrate from `node-red-contrib-themes/midnight-red` (deprecated) to `@node-red-contrib-themes/theme-collection` which supports many more themes. See: - [Node-RED themes list](https://github.com/node-red-contrib-themes/theme-collection#theme-list) Modify Dockerfile template: 1. No need to declare `EXTRA_PACKAGES` as an environment variable. It isn't needed in the container. The `ARG` reference is sufficient. 2. Remove redundant `apk update` command. The `--no-cache` flag on the `apk add` handles both package-list updates and their removal. It makes for a slightly smaller container. I discovered (and tested) this behaviour when posting a reply to: - [node-red-docker issue 338](node-red/node-red-docker#338). Signed-off-by: Phill Kelley <[email protected]>
Harmonises list of add-on nodes across old-menu and master branches. This includes removal of `node-red-node-rbe` which has been replaced by the built-in Filter node. See: - [Release notes](https://nodered.org/blog/2021/07/20/version-2-0-released#renamed-rbe-node-to-filter-node) Migrate from `node-red-contrib-themes/midnight-red` (deprecated) to `@node-red-contrib-themes/theme-collection` which supports many more themes. See: - [Node-RED themes list](https://github.com/node-red-contrib-themes/theme-collection#theme-list) Modify Dockerfile template: 1. No need to declare `EXTRA_PACKAGES` as an environment variable. It isn't needed in the container. The `ARG` reference is sufficient. 2. Remove redundant `apk update` command. The `--no-cache` flag on the `apk add` handles both package-list updates and their removal. It makes for a slightly smaller container. I discovered (and tested) this behaviour when posting a reply to: - [node-red-docker issue 338](node-red/node-red-docker#338). Signed-off-by: Phill Kelley <[email protected]>
At the next major release (4.0.0) remove any unused packages from the base images
Check for any others.
The text was updated successfully, but these errors were encountered: