|
| 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 | + "REPLICATE": { |
| 7 | + "description": "replicate assumes equivalence in the core Singularity files, plus the base operating system, but not including files in variable locations (eg, /tmp and /var)", |
| 8 | + "regexp": "^bin/([^/]+)$|^etc/([^/]+)$|^sys/([^/]+)$|^usr/([^/]+)$|^lib/([^/]+)$|^lib64/([^/]+)$", |
| 9 | + "assess_content":["/.run", |
| 10 | + "/.shell", |
| 11 | + "/.exec", |
| 12 | + "/environment", |
| 13 | + "/singularity", |
| 14 | + "/.singularity.d/labels.json"] |
| 15 | + }, |
| 16 | + "BASE": { |
| 17 | + "description": "replicate assumes equivalence in the core Singularity files, plus the base operating system, but not including files in variable locations (eg, /tmp and /var)", |
| 18 | + "regexp": "bin/([^/]+)$|etc/([^/]+)$|sys/([^/]+)$|usr/([^/]+)$|lib/([^/]+)$|lib64/([^/]+)$", |
| 19 | + "skip_files": ["/.run", |
| 20 | + "/.shell", |
| 21 | + "/.exec", |
| 22 | + "/environment", |
| 23 | + "/singularity", |
| 24 | + "/etc/mtab", |
| 25 | + "/etc/resolv.conf", |
| 26 | + "/etc/hosts", |
| 27 | + "/bin/gunzip", |
| 28 | + "/bin/uncompress", |
| 29 | + "/.singularity.d/runscript", |
| 30 | + "/.singularity.d/actions/exec", |
| 31 | + "/.singularity.d/actions/shell", |
| 32 | + "/.singularity.d/actions/run", |
| 33 | + "/.singularity.d/labels.json"] |
| 34 | + }, |
| 35 | + "LABELS": { |
| 36 | + "description": "only look at the container labels, if they exist (singularity version 2.3)", |
| 37 | + "assess_content": "/.singularity.d/labels.json", |
| 38 | + "regexp": "$^" |
| 39 | + }, |
| 40 | + "RUNSCRIPT": { |
| 41 | + "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", |
| 42 | + "assess_content":["/singularity"], |
| 43 | + "regexp": "$^" |
| 44 | + }, |
| 45 | + "ENVIRONMENT": { |
| 46 | + "description": "only look at the container's environment. This level will only look at the environment files when assessing similarity.", |
| 47 | + "regexp": "$^", |
| 48 | + "assess_content":["/environment"] |
| 49 | + }, |
| 50 | + "RECIPE": { |
| 51 | + "description": "recipe looks at everything on the level of the Singularity image, meaning the runscript, and environment for version 2.2", |
| 52 | + "regexp": "$^", |
| 53 | + "assess_content":["/.run", |
| 54 | + "/.shell", |
| 55 | + "/.exec", |
| 56 | + "/environment", |
| 57 | + "/singularity", |
| 58 | + "/.singularity.d/labels.json"] |
| 59 | + } |
| 60 | +} |
0 commit comments