From a1d03343feb0dc3b566f430a69104fd59cf74283 Mon Sep 17 00:00:00 2001 From: Javi Aguilar <122741+itsjavi@users.noreply.github.com> Date: Wed, 18 Apr 2018 12:53:37 +0200 Subject: [PATCH 1/2] docs: use full Docker hub image name --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fe144e5f3..956ca146a 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,18 @@ Available on [Maven Central](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%2 # Docker -Available on [Docker Hub](https://hub.docker.com/r/quen2404/openapi-diff/) +Available on [Docker Hub](https://hub.docker.com/r/quen2404/openapi-diff/) as `quen2404/openapi-diff`. -## Build image +## Build the image + +This is only required if you want to try new changes in the Dockerfile of this project. ```bash -docker build -t openapi-diff . +docker build -t local-openapi-diff . ``` +You can replace the local image name `dev-openapi-diff` by any name of your choice. + ## Run an instance In this example the `$(pwd)/src/test/resources` directory is mounted in the `/specs` directory of the container @@ -44,9 +48,11 @@ in readonly mode (`ro`). ```bash docker run -t \ -v $(pwd)/src/test/resources:/specs:ro \ - openapi-diff /specs/path_1.yaml /specs/path_2.yaml + quen2404/openapi-diff /specs/path_1.yaml /specs/path_2.yaml ``` +The remote name `quen2404/openapi-diff` can be replaced with `local-openapi-diff` or the name you gave to your local image. + # Usage OpenDiff can read swagger api spec from json file or http. From ffd842d4162c5f30f911fbee63b2730d21ba05a7 Mon Sep 17 00:00:00 2001 From: Javi Aguilar <122741+itsjavi@users.noreply.github.com> Date: Wed, 18 Apr 2018 18:31:48 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 956ca146a..ae0a74ab5 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ This is only required if you want to try new changes in the Dockerfile of this p docker build -t local-openapi-diff . ``` -You can replace the local image name `dev-openapi-diff` by any name of your choice. +You can replace the local image name `local-openapi-diff` by any name of your choice. ## Run an instance