File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,27 @@ Available on [Maven Central](https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%2
26
26
</dependency >
27
27
```
28
28
29
+ # Docker
30
+
31
+ Available on [ Docker Hub] ( https://hub.docker.com/r/quen2404/openapi-diff/ )
32
+
33
+ ## Build image
34
+
35
+ ``` bash
36
+ docker build -t openapi-diff .
37
+ ```
38
+
39
+ ## Run an instance
40
+
41
+ In this example the ` $(pwd)/src/test/resources ` directory is mounted in the ` /specs ` directory of the container
42
+ in readonly mode (` ro ` ).
43
+
44
+ ``` bash
45
+ docker run -t \
46
+ -v $( pwd) /src/test/resources:/specs:ro \
47
+ openapi-diff /specs/path_1.yaml /specs/path_2.yaml
48
+ ```
49
+
29
50
# Usage
30
51
OpenDiff can read swagger api spec from json file or http.
31
52
@@ -274,24 +295,6 @@ try {
274
295
Changed response : [200] //successful operation
275
296
```
276
297
277
- # Docker
278
-
279
- ## Build image
280
- ``` bash
281
- docker build -t openapi-diff .
282
- ```
283
-
284
- ## Run an instance
285
-
286
- In this example the ` $(pwd)/src/test/resources ` directory is mounted in the ` /specs ` directory of the container
287
- in readonly mode (` ro ` ).
288
-
289
- ``` bash
290
- docker run -t \
291
- -v $( pwd) /src/test/resources:/specs:ro \
292
- openapi-diff /specs/path_1.yaml /specs/path_2.yaml
293
- ```
294
-
295
298
# License
296
299
openapi-diff is released under the Apache License 2.0.
297
300
You can’t perform that action at this time.
0 commit comments