add docker validator (#1910)

* add docker validator

* remove container when it exists

---------

Co-authored-by: feederbox826 <feederbox826@users.noreply.github.com>
This commit is contained in:
feederbox826 2024-06-18 16:11:27 -04:00 committed by GitHub
parent c118e0d973
commit d0f9e56417
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -97,3 +97,10 @@ First, install the validator's dependencies - inside the [`./validator`](./valid
Then, to run the validator, use `node validate.js` in the root of the repository.
Specific scrapers can be checked using: `node validate.js scrapers/foo.yml scrapers/bar.yml`
#### Docker option
Instead of NodeJS being installed, Docker can be used to run the validator
```bash
docker run --rm -v .:/app node:alpine /bin/sh -c "cd /app/validator && yarn install --silent && cd .. && node validate.js --ci""
```