|
| 1 | +{ |
| 2 | + "IDENTICAL": { |
| 3 | + "description": "The image is exactly the same, meaning the file itself. This is what should be achieved if you download the same image multiple times. The entire contents of the image are used to generate the hash.", |
| 4 | + "regexp": "." |
| 5 | + }, |
| 6 | + |
| 7 | + "REPLICATE": { |
| 8 | + "description": "the image is generated from the same build file, but at different timepoints. This is what you would achieve if you built an image, and then built an equivalent one right after.", |
| 9 | + "regexp": "^/usr|^/bin|^/boot|^/lib64|/proc|^/run|^/dev|^/opt|^/sbin|^/srv|^/sys", |
| 10 | + "skip_files":["/etc/resolv.conf", |
| 11 | + "/etc/hosts", |
| 12 | + "/.singularity/actions/exec", |
| 13 | + "/.singularity/actions/run", |
| 14 | + "/.singularity/actions/shell", |
| 15 | + "/etc/mtab"] |
| 16 | + }, |
| 17 | + |
| 18 | + "RUNSCRIPT": { |
| 19 | + "description": "runscript is a level that assesses only the executable runscript in the image. This is a fast approach to sniff if the container is broadly doing the same thing", |
| 20 | + "include_files":["/.singularity/runscript"] |
| 21 | + }, |
| 22 | + "ENVIRONMENT": { |
| 23 | + "description": "only look at the container's environment. This level will only look at the environment files when assessing similarity.", |
| 24 | + "regexp": "/.singularity/env" |
| 25 | + }, |
| 26 | + "LABELS": { |
| 27 | + "description": "only look at the container labels, if they exist (singularity version 2.3)", |
| 28 | + "include_files": "/.singularity/labels.json" |
| 29 | + }, |
| 30 | + "RECIPE": { |
| 31 | + "description": "singularity looks at everything on the level of the Singularity image, meaning the runscript, environment, and labels.", |
| 32 | + "regexp": "/.singularity/env", |
| 33 | + "include_files":["/.singularity/actions/exec", |
| 34 | + "/.singularity/actions/run", |
| 35 | + "/.singularity/actions/shell", |
| 36 | + "/.singularity/labels.json"] |
| 37 | + } |
| 38 | +} |
0 commit comments