From 2eb93d09331b256c3a13f0b7f7fc9a9387dcddcf Mon Sep 17 00:00:00 2001 From: David Boreham Date: Fri, 14 Apr 2023 21:09:22 -0600 Subject: [PATCH] quiet npm version warning (#331) --- app/data/container-build/cerc-builder-js/Dockerfile | 3 +++ app/data/container-build/cerc-laconic-console-host/Dockerfile | 2 ++ app/data/container-build/cerc-laconic-registry-cli/Dockerfile | 2 ++ 3 files changed, 7 insertions(+) diff --git a/app/data/container-build/cerc-builder-js/Dockerfile b/app/data/container-build/cerc-builder-js/Dockerfile index d8475d2b..9e02327e 100644 --- a/app/data/container-build/cerc-builder-js/Dockerfile +++ b/app/data/container-build/cerc-builder-js/Dockerfile @@ -29,6 +29,9 @@ RUN \ usermod -u ${CERC_HOST_UID} -g ${CERC_HOST_GID} ${USERNAME} && chown ${CERC_HOST_UID}:${CERC_HOST_GID} /home/${USERNAME}; \ fi +# Prevents npm from printing version warnings +ENV NPM_CONFIG_UPDATE_NOTIFIER=false + RUN \ # Configure global npm install location, use group to adapt to UID/GID changes if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \ diff --git a/app/data/container-build/cerc-laconic-console-host/Dockerfile b/app/data/container-build/cerc-laconic-console-host/Dockerfile index 66eec1f5..51a86560 100644 --- a/app/data/container-build/cerc-laconic-console-host/Dockerfile +++ b/app/data/container-build/cerc-laconic-console-host/Dockerfile @@ -12,6 +12,8 @@ ARG CERC_NPM_AUTH_TOKEN # Add NPM global to PATH. ENV PATH=${NPM_GLOBAL}/bin:${PATH} +# Prevents npm from printing version warnings +ENV NPM_CONFIG_UPDATE_NOTIFIER=false RUN \ # Configure global npm install location, use group to adapt to UID/GID changes diff --git a/app/data/container-build/cerc-laconic-registry-cli/Dockerfile b/app/data/container-build/cerc-laconic-registry-cli/Dockerfile index 213ef8f4..b7e87475 100644 --- a/app/data/container-build/cerc-laconic-registry-cli/Dockerfile +++ b/app/data/container-build/cerc-laconic-registry-cli/Dockerfile @@ -12,6 +12,8 @@ ARG CERC_NPM_AUTH_TOKEN # Add NPM global to PATH. ENV PATH=${NPM_GLOBAL}/bin:${PATH} +# Prevents npm from printing version warnings +ENV NPM_CONFIG_UPDATE_NOTIFIER=false RUN \ # Configure global npm install location, use group to adapt to UID/GID changes