Custom rulesets when using docker #2392
-
I have a folder with:
In that folder i have tried running these docker commands with the terminal in the same folder:
So how do i specify a custom ruleset when using the container approach? I would prefer not to have to execute on my local machine, so docker is a great option that you have added. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hey @mifriis, those commands worked for me using powershell: docker run -it -v /c/linting/tmp:/usr/src/spectral my-private-registry.com.br/devops/spectral:6.6.0 lint -r "rule-oas.yaml" "openapi.yaml" docker run -it -v ${pwd}/tmp:/usr/src/spectral my-private-registry.com.br/devops/spectral:6.6.0 lint -r "rule-oas.yaml" "openapi.yaml" |
Beta Was this translation helpful? Give feedback.
hey @mifriis, those commands worked for me using powershell:
docker run -it -v /c/linting/tmp:/usr/src/spectral my-private-registry.com.br/devops/spectral:6.6.0 lint -r "rule-oas.yaml" "openapi.yaml"
docker run -it -v ${pwd}/tmp:/usr/src/spectral my-private-registry.com.br/devops/spectral:6.6.0 lint -r "rule-oas.yaml" "openapi.yaml"