Node image with jsonlint for use in CI
1.4K
This is a small container image that contains a Node environment with @prantlf/jsonlint (better version of original jsonlint). This container is very useful for automatic testing during CI.
docker run --rm -v /path/to/code:/code hdcore/docker-jsonlint:<version>
docker run --rm -v /path/to/code:/code hdcore/docker-jsonlint:<version> jsonlint.sh <options>
jsonlint:
stage: lint
image: hdcore/docker-jsonlint:1
script:
- jsonlint.sh
docker run -it --rm -v /path/to/code:/code hdcore/docker-jsonlint:<version> /bin/sh
docker compose run -it --rm -v /path/to/code:/code local-jsonlint-<version> /bin/sh
The image is stored on multiple container registries at DockerHub and Gitlab:
To build the image locally:
docker build -f <version>/Dockerfile -t docker-jsonlint:<version> .
docker compose build
Content type
Image
Digest
sha256:1f9421681…
Size
58.5 MB
Last updated
6 months ago
docker pull hdcore/docker-jsonlint:1