commit e491b255889b302b8cd0132e52d700e1fad0a22a Author: Andrey Arapov Date: Wed May 9 10:55:26 2018 +0200 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a25811a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +jv diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4fb0755 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:1.9.6-alpine as build +RUN apk add --update git +RUN go get -u github.com/maxzender/jv + +FROM scratch +COPY --from=build /go/bin/jv /bin/jv +ENTRYPOINT ["/bin/jv"] +# CMD ["--help"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..5c968f5 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +### IMPORTANT + +It appears that it is not yet working as desired, see: +https://github.com/moby/moby/issues/37023 + +# jv + +This is a smallest possible docker image for jv. ``2.9MiB`` + +jv (for jsonviewer) helps you view your JSON. + +## Usage + +Add the following alias to your ``~/.bash_aliases`` file: + +``` +alias jv='docker run --rm -ti andrey01/jv' +``` + +## References + +- https://github.com/maxzender/jv