Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Read <eread@gitlab.com>2022-10-27 02:01:04 +0300
committerEvan Read <eread@gitlab.com>2022-10-27 02:01:04 +0300
commitab87046499f4d0e466e095e9c9c6899a623215e4 (patch)
tree7431968445311b8b1e107ef832703e015a5174e1 /dockerfiles
parentccbae814bb1140e932265e30c4bfea160106be59 (diff)
parent3a74580461c5495d90b59a787c23626fa26cb8bb (diff)
Merge branch 'sarahg/node-path-markdownlint' into 'main'
Set NODE_PATH to allow markdownlint scripts to run global packages See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3216 Merged-by: Evan Read <eread@gitlab.com> Approved-by: Evan Read <eread@gitlab.com> Co-authored-by: Sarah German <sgerman@gitlab.com>
Diffstat (limited to 'dockerfiles')
-rw-r--r--dockerfiles/gitlab-docs-lint-markdown.Dockerfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/dockerfiles/gitlab-docs-lint-markdown.Dockerfile b/dockerfiles/gitlab-docs-lint-markdown.Dockerfile
index 233b809d..fde3190a 100644
--- a/dockerfiles/gitlab-docs-lint-markdown.Dockerfile
+++ b/dockerfiles/gitlab-docs-lint-markdown.Dockerfile
@@ -10,6 +10,9 @@ ARG VALE_VERSION
ARG MARKDOWNLINT_VERSION
ARG MARKDOWNLINT2_VERSION
+# Set NODE_PATH to allow custom markdownlint rules to use global packages
+ENV NODE_PATH="/usr/local/share/.config/yarn/global/node_modules"
+
# Install dependencies
RUN printf "\n\e[32mINFO: Installing dependencies..\e[39m\n" && apk add --no-cache -U \
bash \