You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+76-1Lines changed: 76 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -241,9 +241,84 @@ Packages found only in gcr.io/google-appengine/python:2017-06-29-190410: None
241
241
Version differences: None
242
242
243
243
```
244
+
## Example Run with json post-processing
245
+
The following example demonstrates how one might selectively display the output of their diff, such that version differences are ignored and only package absence/presence is displayed and the packages present in only one image are sorted by size in descending order. A small piece of the json being post-processed can be seen below:
246
+
```
247
+
[
248
+
{
249
+
"DiffType": "AptDiffer",
250
+
"Diff": {
251
+
"Image1": "gcr.io/gcp-runtimes/multi-base",
252
+
"Packages1": {},
253
+
"Image2": "gcr.io/gcp-runtimes/multi-modified",
254
+
"Packages2": {
255
+
"dh-python": {
256
+
"Version": "1.20141111-2",
257
+
"Size": "277"
258
+
},
259
+
"libmpdec2": {
260
+
"Version": "2.4.1-1",
261
+
"Size": "275"
262
+
},
263
+
...
264
+
```
265
+
The post-processing script used for this example is below:
0 commit comments