doc: Recommend lint image build on every call

This commit is contained in:
MarcoFalke 2023-08-18 15:23:04 +02:00
parent faf70c1f33
commit fa25e8b0a1
No known key found for this signature in database
1 changed files with 3 additions and 5 deletions

View File

@ -7,13 +7,11 @@ To run linters locally with the same versions as the CI environment, use the inc
Dockerfile:
```sh
DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./
docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter
DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./ && docker run --rm -v $(pwd):/bitcoin -it bitcoin-linter
```
After building the container once, you can simply run the last command any time you
want to lint.
Building the container can be done every time, because it is fast when the
result is cached and it prevents issues when the image changes.
check-doc.py