Skip to content

Commit 1af7fe0

Browse files
committed
adding json files
1 parent 16444af commit 1af7fe0

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

singularity/hub/data/__init__.py

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
"/.run",
13+
"/.shell",
14+
"/environment",
15+
"/.exec",
16+
"/etc/mtab"]
17+
},
18+
19+
"RUNSCRIPT": {
20+
"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",
21+
"include_files":["/runscript"]
22+
},
23+
"ENVIRONMENT": {
24+
"description": "only look at the container's environment. This level will only look at the environment files when assessing similarity.",
25+
"include_files":["/environment"]
26+
},
27+
"RECIPE": {
28+
"description": "singularity looks at everything on the level of the Singularity image, meaning the runscript, and environment for version 2.2",
29+
"include_files":["/.run",
30+
"/.shell",
31+
"/environment",
32+
"/.exec"]
33+
}
34+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

Comments
 (0)