Skip to content

Commit 006c353

Browse files
committed
adding static files needed
1 parent c45ccff commit 006c353

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

examples/visualize/tree/container_tree/README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,17 @@ The functions under analysis will help you show the contents of an image (folder
44

55
```python
66

7-
from singularity.views import ( container_tree, get_template )
7+
from singularity.views import ( make_container_tree, get_template )
88

99
files = ["/path/1", .. , "/path/N"]
1010

1111
tree = container_tree(files=files, folders=files)
12-
html = get_template('container_tree', {'files': tree['files'],
13-
'graph': tree['graph'],
14-
'container_name': "My Container Tree"})
12+
13+
html = get_template('container_tree', {'{{ files | safe }}': json.dumps(tree['files']),
14+
'{{ graph | safe }}': json.dumps(tree['graph']),
15+
'{{ container_name }}': "My Container Tree"})
1516
```
1617

1718
![../../img/files.png](../../img/files.png)
1819

1920
An [interactive demo](https://singularityware.github.io/singularity-python/examples/container_tree) is also available.
20-
21-
It's suggested that you use a package so it will open automatically - note that if you specify an image file, it will need to be packaged, and the console will hang as it waits for you to type it in and press enter.
22-
23-
![sudopw.png](sudopw.png)
24-
25-
This is a pretty simple start, and the cool thing about this idea is that we can use the same visualization to show commonalities and differences between containers, and it doesn't even limit us to Singularity, this would work for Docker, or your local file system, or any combination of those things. This (comparison of images) is the reason I delved into this in the first place! I will write up the method / thinking soon.
2.03 KB
Loading
1.13 KB
Loading
1.26 KB
Loading

0 commit comments

Comments
 (0)