diff --git a/.docker/Dockerfile.alpine b/.docker/Dockerfile.alpine index 6075f376..ab149a45 100644 --- a/.docker/Dockerfile.alpine +++ b/.docker/Dockerfile.alpine @@ -43,7 +43,7 @@ FROM base AS build # Install Build tools RUN apk add --no-cache --virtual buildtools build-base linux-headers udev python && \ - npm install --unsafe-perm --no-update-notifier --no-audit --only=production && \ + npm install --unsafe-perm --no-update-notifier --no-audit --no-fund --only=production && \ /tmp/remove_native_gpio.sh && \ cp -R node_modules prod_node_modules diff --git a/README.md b/README.md index 5aa164a5..aac6c7ef 100644 --- a/README.md +++ b/README.md @@ -31,17 +31,17 @@ Running that command should give a terminal window with a running instance of No Welcome to Node-RED =================== - 03 Oct 12:57:10 - [info] Node-RED version: v1.1.2 - 03 Oct 12:57:10 - [info] Node.js version: v10.16.3 - 03 Oct 12:57:10 - [info] Linux 4.9.184-linuxkit x64 LE - 03 Oct 12:57:11 - [info] Loading palette nodes - 03 Oct 12:57:16 - [info] Settings file : /data/settings.js - 03 Oct 12:57:16 - [info] Context store : 'default' [module=memory] - 03 Oct 12:57:16 - [info] User directory : /data - 03 Oct 12:57:16 - [warn] Projects disabled : editorTheme.projects.enabled=false - 03 Oct 12:57:16 - [info] Flows file : /data/flows.json - 03 Oct 12:57:16 - [info] Creating new flow file - 03 Oct 12:57:17 - [warn] + 10 Jul 12:57:10 - [info] Node-RED version: v1.1.2 + 10 Jul 12:57:10 - [info] Node.js version: v10.21.0 + 10 Jul 12:57:10 - [info] Linux 4.9.184-linuxkit x64 LE + 10 Jul 12:57:11 - [info] Loading palette nodes + 10 Jul 12:57:16 - [info] Settings file : /data/settings.js + 10 Jul 12:57:16 - [info] Context store : 'default' [module=memory] + 10 Jul 12:57:16 - [info] User directory : /data + 10 Jul 12:57:16 - [warn] Projects disabled : editorTheme.projects.enabled=false + 10 Jul 12:57:16 - [info] Flows file : /data/flows.json + 10 Jul 12:57:16 - [info] Creating new flow file + 10 Jul 12:57:17 - [warn] --------------------------------------------------------------------- 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 file using your chosen key the next time you deploy a change. --------------------------------------------------------------------- - 03 Oct 12:57:17 - [info] Starting flows - 03 Oct 12:57:17 - [info] Started flows - 03 Oct 12:57:17 - [info] Server now running at http://127.0.0.1:1880/ + 10 Jul 12:57:17 - [info] Starting flows + 10 Jul 12:57:17 - [info] Started flows + 10 Jul 12:57:17 - [info] Server now running at http://127.0.0.1:1880/ [...] @@ -83,6 +83,8 @@ and stop it again when required: $ docker stop mynodered +**Healthcheck**: to turn off the Healthcheck add `--no-healthcheck` to the run command. + ## Image Variations The Node-RED images come in different variations and are supported by manifest lists (auto-detect architecture). 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. Node-RED uses the `/data` directory inside the container to store user configuration data. +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. + ### Using a Host Directory for Persistence (Bind Mount) To save your Node-RED user directory inside the container to a host directory outside the container, you can use the 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: -p 9229:9229 - connect local port 9229 to the exposed internal port 9229 (for debugger communication) --name mynodered - give this machine a friendly local name --entrypoint npm - overwrite the default entrypoint (which would run the *'start'* script) - nodered/node-red - the image to base it on - currently Node-RED v1.0.3 + nodered/node-red - the image to base it on - currently Node-RED v1.1.0 run debug(_brk) - (npm) arguments for the custom endpoint (which must be added AFTER the image name!) -- - the arguments that will follow are not npm arguments, but need to be passed to the script --userDir /data - instruct the script where the Node-RED data needs to be stored diff --git a/docker-custom/Dockerfile.custom b/docker-custom/Dockerfile.custom index c2303536..018648e9 100644 --- a/docker-custom/Dockerfile.custom +++ b/docker-custom/Dockerfile.custom @@ -38,7 +38,7 @@ FROM base AS build # Install Build tools RUN apk add --no-cache --virtual buildtools build-base linux-headers udev python && \ - npm install --unsafe-perm --no-update-notifier --only=production && \ + npm install --unsafe-perm --no-update-notifier --no-fund --only=production && \ /tmp/remove_native_gpio.sh && \ cp -R node_modules prod_node_modules