chore: explain how to configure the path (#6244)

Explain how to configure the PATH when installing new tools using pip.
This commit is contained in:
Marco Ferrari 2024-10-10 14:24:13 +02:00 committed by GitHub
parent c97987ce2a
commit 02081814d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,8 +34,18 @@ new tool needs in the `PATH`, and the expected version command:
- Install the tool by pointing to specific package or container image versions:
- If there are PyPi packages, create a text file named
`dependencies/python/<name-of-tool>.txt` and list the packages there.
- If there are PyPi packages:
1. Create a text file named `dependencies/python/<name-of-tool>.txt` and
list the packages there.
1. Add the new virtual environment `bin` directory to the `PATH` in the
Super-linter `Dockerfile`, in the `Configure Environment` section.
Example:
```dockerfile
ENV PATH="${PATH}:/venvs/<name-of-tool>/bin"
```
- If there are npm packages, update `dependencies/package.json` and
`dependencies/package-lock.json`. by adding the new packages.
- If there are Ruby Gems, update `dependencies/Gemfile` and