diff options
author | Evan Read <eread@gitlab.com> | 2022-10-27 02:01:04 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-10-27 02:01:04 +0300 |
commit | ab87046499f4d0e466e095e9c9c6899a623215e4 (patch) | |
tree | 7431968445311b8b1e107ef832703e015a5174e1 /dockerfiles | |
parent | ccbae814bb1140e932265e30c4bfea160106be59 (diff) | |
parent | 3a74580461c5495d90b59a787c23626fa26cb8bb (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.Dockerfile | 3 |
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 \ |