[Dev Deps] update `markdown-link-check`
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Jordan Harband · committed by Jordan Harband · parent f0f8ed1 · Browse files · 2 files·+58 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+58 added−1 removed
- other:+58 added−1 removed
Provenance
- Commit
5c12680- Tree
e87cdcc- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
f0f8ed1
2 files changed+58 added−1 removed
modified:package.json+1 added-1 removed
43 unmodified lines444546474848495051525343 unmodified lines "devDependencies": { "dockerfile_lint": "^0.3.4", "doctoc": "^2.2.1", "eclint": "^2.8.1", "markdown-link-check": "^3.13.6", "markdown-link-check": "^3.13.7", "replace": "^1.2.2", "semver": "^7.7.1", "urchin": "^0.0.5" }}modified:README.md+57 added
17 unmodified lines18 - [Installing and Updating](#installing-and-updating)19 - [Install & Update Script](#install--update-script)20 - [Additional Notes](#additional-notes)21 - [Installing in Docker](#installing-in-docker)22+ - [Installing in Docker for CICD-Jobs](#installing-in-docker-for-cicd-jobs)23 - [Troubleshooting on Linux](#troubleshooting-on-linux)24 - [Troubleshooting on macOS](#troubleshooting-on-macos)25 - [Ansible](#ansible)26 - [Verify Installation](#verify-installation)127 unmodified lines154 RUN echo node > .nvmrc155 RUN nvm install156 ```157 158+##### Installing in Docker for CICD-Jobs159+160+More robust, works in CI/CD-Jobs. Can be run in interactive and non-interactive containers.161+See https://github.com/nvm-sh/nvm/issues/3531.162+163+```Dockerfile164+FROM ubuntu:latest165+ARG NODE_VERSION=20166+167+# install curl168+RUN apt update && apt install curl -y169+170+# install nvm171+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash172+173+# set env174+ENV NVM_DIR=/root/.nvm175+176+# install node177+RUN bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"178+179+# set ENTRYPOINT for reloading nvm-environment180+ENTRYPOINT ["bash", "-c", "source $NVM_DIR/nvm.sh && exec \"$@\"", "--"]181+182+# set cmd to bash183+CMD ["/bin/bash"]184+185+```186+187+This example defaults to installation of nodejs version 20.x.y. Optionally you can easily override the version with docker build args like:188+```189+docker build -t nvmimage --build-arg NODE_VERSION=19 .190+```191+192+After creation of the image you can start container interactively and run commands, for example:193+```194+docker run --rm -it nvmimage195+196+root@0a6b5a237c14:/# nvm -v197+0.40.1198+199+root@0a6b5a237c14:/# node -v200+v19.9.0201+202+root@0a6b5a237c14:/# npm -v203+9.6.3204+```205+206+Noninteractive example:207+```208+user@host:/tmp/test $ docker run --rm -it nvmimage node -v209+v19.9.0210+user@host:/tmp/test $ docker run --rm -it nvmimage npm -v211+9.6.3212+```213+214 #### Troubleshooting on Linux215 216 On Linux, after running the install script, if you get `nvm: command not found` or see no feedback from your terminal after you type `command -v nvm`, simply close your current terminal, open a new terminal, and try verifying again.217 Alternatively, you can run the following commands for the different shells on the command line:957 unmodified lines