From d0f9e56417b800ee860ad3b44ee699e1d14fd06c Mon Sep 17 00:00:00 2001 From: feederbox826 <144178721+feederbox826@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:11:27 -0400 Subject: [PATCH] add docker validator (#1910) * add docker validator * remove container when it exists --------- Co-authored-by: feederbox826 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 90145ef6..61be9dd2 100644 --- a/README.md +++ b/README.md @@ -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"" +``` \ No newline at end of file