mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 04:32:16 -05:00
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:
parent
c97987ce2a
commit
02081814d8
1 changed files with 12 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue