zgrossbart / jdd

A semantic JSON compare tool
http://www.jsondiff.com
Apache License 2.0
1.05k stars 183 forks source link

When running from Docker container, auto-loading of JSON does not work #44

Closed greg-cacheq closed 2 years ago

greg-cacheq commented 2 years ago

To reproduce: 1) run jdd in Docker 2) try URL http://localhost/left=http://jsondiff.com/one.json&right=http://jsondiff.com/two.json

Expected result:

Actual result:

zgrossbart commented 2 years ago

There was an error in the README when running the Docker file. I've updated it. Make sure you run the following commands to make sure everything is cleaned up:

docker stop jdd
docker rm jdd
docker build --tag=jdd:v1-alpine --file=Dockerfile.alpine .
docker run -i --name jdd -p 127.0.0.1:8080:80/tcp jdd:v1-alpine

Then you have to make sure your URL is formatted properly. It should look like this:

http://localhost:8080/?left=http://jsondiff.com/one.json&right=http://jsondiff.com/two.json

zgrossbart commented 2 years ago
image