Sign inSign up

forekshub/jsonvalidator

By forekshub

•Updated over 9 years ago

docker run --rm forekshub/jsonvalidator -v "jsondata":"/mnt/data"

Image
0

10K+

forekshub/jsonvalidator repository overview

FROM node RUN npm install jsonlint -g VOLUME /mnt/data WORKDIR /mnt/data ADD . /opt/validator CMD /opt/validator/entrypoint.sh


entrypoint.sh

#!/bin/bash

for file in find /mnt/data -name "*json"; do jsonlint -c $file; if [ $? -ne 0 ]; then echo "FAIL"; break; fi; done

Tag summary

Content type

Image

Digest

Size

247.9 MB

Last updated

over 9 years ago

docker pull forekshub/jsonvalidator