Skip to content

Commit 10e4ef8

Browse files
author
Dave Conway-Jones
committed
fixup Readme with healtcheck note
And fix datess :-)
1 parent d6c0c85 commit 10e4ef8

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

.docker/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FROM base AS build
4343

4444
# Install Build tools
4545
RUN apk add --no-cache --virtual buildtools build-base linux-headers udev python && \
46-
npm install --unsafe-perm --no-update-notifier --no-audit --only=production && \
46+
npm install --unsafe-perm --no-update-notifier --no-audit --no-fund --only=production && \
4747
/tmp/remove_native_gpio.sh && \
4848
cp -R node_modules prod_node_modules
4949

README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ Running that command should give a terminal window with a running instance of No
3131
Welcome to Node-RED
3232
===================
3333

34-
03 Oct 12:57:10 - [info] Node-RED version: v1.1.2
35-
03 Oct 12:57:10 - [info] Node.js version: v10.16.3
36-
03 Oct 12:57:10 - [info] Linux 4.9.184-linuxkit x64 LE
37-
03 Oct 12:57:11 - [info] Loading palette nodes
38-
03 Oct 12:57:16 - [info] Settings file : /data/settings.js
39-
03 Oct 12:57:16 - [info] Context store : 'default' [module=memory]
40-
03 Oct 12:57:16 - [info] User directory : /data
41-
03 Oct 12:57:16 - [warn] Projects disabled : editorTheme.projects.enabled=false
42-
03 Oct 12:57:16 - [info] Flows file : /data/flows.json
43-
03 Oct 12:57:16 - [info] Creating new flow file
44-
03 Oct 12:57:17 - [warn]
34+
10 Jul 12:57:10 - [info] Node-RED version: v1.1.2
35+
10 Jul 12:57:10 - [info] Node.js version: v10.21.0
36+
10 Jul 12:57:10 - [info] Linux 4.9.184-linuxkit x64 LE
37+
10 Jul 12:57:11 - [info] Loading palette nodes
38+
10 Jul 12:57:16 - [info] Settings file : /data/settings.js
39+
10 Jul 12:57:16 - [info] Context store : 'default' [module=memory]
40+
10 Jul 12:57:16 - [info] User directory : /data
41+
10 Jul 12:57:16 - [warn] Projects disabled : editorTheme.projects.enabled=false
42+
10 Jul 12:57:16 - [info] Flows file : /data/flows.json
43+
10 Jul 12:57:16 - [info] Creating new flow file
44+
10 Jul 12:57:17 - [warn]
4545

4646
---------------------------------------------------------------------
4747
Your flow credentials file is encrypted using a system-generated key.
@@ -55,9 +55,9 @@ Running that command should give a terminal window with a running instance of No
5555
file using your chosen key the next time you deploy a change.
5656
---------------------------------------------------------------------
5757

58-
03 Oct 12:57:17 - [info] Starting flows
59-
03 Oct 12:57:17 - [info] Started flows
60-
03 Oct 12:57:17 - [info] Server now running at http://127.0.0.1:1880/
58+
10 Jul 12:57:17 - [info] Starting flows
59+
10 Jul 12:57:17 - [info] Started flows
60+
10 Jul 12:57:17 - [info] Server now running at http://127.0.0.1:1880/
6161

6262
[...]
6363

@@ -83,6 +83,8 @@ and stop it again when required:
8383

8484
$ docker stop mynodered
8585

86+
**Healthcheck**: to turn off the Healthcheck add `--no-healthcheck` to the run command.
87+
8688
## Image Variations
8789
The Node-RED images come in different variations and are supported by manifest lists (auto-detect architecture).
8890
This makes it more easy to deploy in a multi architecture Docker environment. E.g. a Docker Swarm with mix of Raspberry Pi's and amd64 nodes.
@@ -227,6 +229,8 @@ This can either be done using a bind mount or a named data volume.
227229

228230
Node-RED uses the `/data` directory inside the container to store user configuration data.
229231

232+
Depending on how and where you mount the user data directory you may want to turn off the built in healthcheck function by adding `--no-healthcheck` to the run command.
233+
230234
### Using a Host Directory for Persistence (Bind Mount)
231235
To save your Node-RED user directory inside the container to a host directory outside the container, you can use the
232236
command below. To allow access to this host directory, the node-red user (default uid=1000) inside the container must
@@ -502,7 +506,7 @@ Let's dissect both commands:
502506
-p 9229:9229 - connect local port 9229 to the exposed internal port 9229 (for debugger communication)
503507
--name mynodered - give this machine a friendly local name
504508
--entrypoint npm - overwrite the default entrypoint (which would run the *'start'* script)
505-
nodered/node-red - the image to base it on - currently Node-RED v1.0.3
509+
nodered/node-red - the image to base it on - currently Node-RED v1.1.0
506510
run debug(_brk) - (npm) arguments for the custom endpoint (which must be added AFTER the image name!)
507511
-- - the arguments that will follow are not npm arguments, but need to be passed to the script
508512
--userDir /data - instruct the script where the Node-RED data needs to be stored

docker-custom/Dockerfile.custom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FROM base AS build
3838

3939
# Install Build tools
4040
RUN apk add --no-cache --virtual buildtools build-base linux-headers udev python && \
41-
npm install --unsafe-perm --no-update-notifier --only=production && \
41+
npm install --unsafe-perm --no-update-notifier --no-fund --only=production && \
4242
/tmp/remove_native_gpio.sh && \
4343
cp -R node_modules prod_node_modules
4444

0 commit comments

Comments
 (0)