Sign inSign up

hdcore/docker-jsonlint

By hdcore

Updated 6 months ago

Node image with jsonlint for use in CI

Image
Developer tools
0

1.4K

hdcore/docker-jsonlint repository overview

HDCore - docker-jsonlint

Introduction

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.

Usage

  • Run jsonlint with default exclusions or with a jsonlintrc.* configurationfile:
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>
  • Use in .gitlab-ci.yml:
jsonlint:
  stage: lint
  image: hdcore/docker-jsonlint:1
  script:
    - jsonlint.sh
  • Run shell (debug):
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

Tags

  • hdcore/docker-jsonlint:1

Registries

The image is stored on multiple container registries at DockerHub and Gitlab:

  • Docker Hub:
    • hdcore/docker-jsonlint
  • Gitlab:
    • registry.gitlab.com/hdcore-docker/docker-jsonlint

Building

To build the image locally:

docker build -f <version>/Dockerfile -t docker-jsonlint:<version> .

docker compose build

Tag summary

Content type

Image

Digest

sha256:1f9421681

Size

58.5 MB

Last updated

6 months ago

docker pull hdcore/docker-jsonlint:1