Skip to content

ToshY/docker-jsonrepair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

🛠️ docker-jsonrepair

📝 Quickstart

docker run -i --rm \
  ghcr.io/toshy/docker-jsonrepair:latest --help

📚 Examples

Fix to output file

Fixing the ./broken.json file:

docker run -i --rm \
  ghcr.io/toshy/docker-jsonrepair:latest < ./broken.json > ./repaired.json

The output is written to ./repaired.json:

Overwrite broken.json with repaired contents

Fixing the ./broken.json file:

docker run -i --rm \
  -u $(id -u):$(id -g) \
  -v ${PWD}:/data \
  --workdir /data \
  ghcr.io/toshy/docker-jsonrepair:latest broken.json --overwrite

The input file broken.json is overwritten with the repaired contents.

🧰 Build

Build docker image from docker-bake.hcl with the APPLICATION_VERSION argument for the desired jsonrepair version.

docker buildx bake --set *.args.APPLICATION_VERSION=3.13.0 --load

The built image will be available with the default tag docker-jsonrepair:local.

docker run -i --rm docker-jsonrepair:local --help

❕ License

This repository comes with a MIT license.

About

Docker image for jsonrepair

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors