-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add initial docker-projects design note #18
base: master
Are you sure you want to change the base?
Conversation
This means: | ||
- the port defaults to 1880 but can be overridden by the `PORT` env var | ||
- the credential secret can be provided by an env var | ||
- the admin api (inc editor) is disabled |
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.
I basically agree disabled should be default... but ... Is this something that could be exposed as a "mini-settings" config as part of the Docker sidebar ? (ie in additions to docker build and push - should we expose a really limited couple of choices that users would want to change "all the time" - like Base image (default node-red-docker:latest) and this enable admin 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.
Not as part of the Docker sidebar, but yes, the Project Settings dialog will expose both settings.js and Dockerfile so they can be edited. As a minimum, editing the raw files, but if there is a way to provide a tick-box means of setting 'common' properties, then we should do that.
The hard part of that is knowing how to apply the settings to the files themselves - especially if they have hand-edited the file.
The design needs to consider how this sidebar could be repurposed for other build | ||
targets in the future. For example, building an Electron-based application rather | ||
than a Docker image. | ||
|
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.
Been looking at Electron recently - and there are potentially too many options unless we want to be really prescriptive. However - there are things we could do to help - most of which could be covered by adding fields to package.json (either to existing Node-RED section or a new electron specific section. (Things like the human friendly "productName", which screen to show first (dashboard/editor/map etc), kiosk mode, and again whether to allow admin/editing) - So again a set of minimal options to help config the export - for other tools to then pick up.
No description provided.