Sign inSign up

mingalevme/gojsonschema

By mingalevme

Updated 7 months ago

Dockerized https://github.com/xeipuuv/gojsonschema

Image
0

544

mingalevme/gojsonschema repository overview

gojsonschema Docker Image

This repo is "dockerizing" the https://github.com/xeipuuv/gojsonschema.

Usage

Docker Hub

docker run --rm -v "$(pwd):/app" -w /app mingalevme/gojsonschema -s test/testdata/schema.json test/testdata/document-valid.json

CI/CD (gitlab)

image: alpine
stages:
  - quality
gojsonschema:
  stage: quality
  needs:  []
  image:
    name: mingalevme/gojsonschema
    entrypoint: [""]
  script:
    - gojsonschema -s schema.json products.json

Source

Build from source
docker build --target gojsonschema -t gojsonschema .
Run local image
docker run --rm -v "$(pwd):/app" -w /opt gojsonschema -s test/testdata/schema.json test/testdata/document-valid.json

Dockerfile

https://github.com/mingalevme/gojsonschema/blob/master/Dockerfile

Tag summary

Content type

Image

Digest

sha256:07c1eafc7

Size

10.2 MB

Last updated

7 months ago

docker pull mingalevme/gojsonschema