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
Once you've generated an asciicast, you should drop the file (e.g., `demo-asciicast.js`) into the `assets/asciicast` folder. Since we will have many asciicasts here, please name it meaningfully. Then include the following in the page or post:
128
128
129
129
```bash
130
-
{{ "{% include asciicast.html source='demo-asciicast.js' title='How to make demos' author='email@domain.com'" }}%}
130
+
{{ "{% include asciicast.html source='demo-asciicast.js' uid='how-to-make-demos' title='How to make demos' author='email@domain.com'" }}%}
131
131
```
132
132
133
+
The fields are important!
134
+
135
+
-*source* is the name of the file. It's expected to be in the `assets/asciicast` folder, you just need to put the filename here (or the subfolder, if you created one).
136
+
-*uid* is the name for the id of the div for the asciicast. It should generally be lowercase, no spaces, and long enough to be unique for the page. It will automatically have `asciicast-` added as a prefix, to put the ids for asciicasts in the same namespace in the DOM.
137
+
-*title* is what the user will see before clicking it. This can be a question ("How do I bootstrap a container?") or a statement ("How to bootstrap a container").
138
+
-*author* is your contact email.
139
+
140
+
133
141
## Adding a Release
134
142
135
143
The releases, akin to the news, are done via a feed. The only difference is that they are rendered on the site in the <ahref="/releases"target="_blank">releases section</a>. It is also done very simply - you just add a new markdown file to the folder `_posts/releases`. The same naming convention follows, however the title of the post should correspond to the release, e.g.:
Copy file name to clipboardExpand all lines: pages/docs/install/install-linux.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ sudo make install
39
39
40
40
note: The 'make install' is required to be run as root to get a properly installed Singularity implementation. If you do not run it as root, you will only be able to launch Singularity as root due to permission limitations.
41
41
42
-
{% include asciicast.html source='install-singularity.js' title='Install Singularity' author='vsochat@stanford.edu' %}
42
+
{% include asciicast.html source='install-singularity.js' uid='install-singularity' title='Install Singularity' author='vsochat@stanford.edu' %}
Copy file name to clipboardExpand all lines: pages/docs/user-docs/docs-bootstrap-image.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ The main content of the bootstrap file is broken into sections.
125
125
#### %setup
126
126
Setup is where you might perform actions on the host before we move into the container. For versions earlier than 2.3, or if you need files during `%post`, you should copy files from your host to `$SINGULARITY_ROOTFS` to move them into the container. For 2.3 and cases when you don't need the files until after `%post`, we recommend you use `%files`. We can see the difference between `%setup` and `%post` in the following asciicast:
127
127
128
-
{% include asciicast.html source='docs-bootstrap-setup-vs-post.json' title='How the container sees setup vs post' author='vsochat@stanford.edu'%}
128
+
{% include asciicast.html source='docs-bootstrap-setup-vs-post.json' uid='container-setup-vs-post' title='How does the container see setup vs post?' author='vsochat@stanford.edu'%}
129
129
130
130
In the above, we see that copying something to `$SINGULARITY_ROOTFS` during `%setup` was successful to move the file into the container, but copying during `%post` was not.
Copy file name to clipboardExpand all lines: pages/docs/user-docs/docs-create-an-image.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ $ ls -lh container*.img
75
75
-rwxr-xr-x 1 user group 769M Apr 15 11:11 container.img
76
76
```
77
77
78
-
{% include asciicast.html source='docs-create-create.js' title='How to create images' author='davidgodlove@gmail.com'%}
78
+
{% include asciicast.html source='docs-create-create.js' uid='how-to-create-images' title='How to create images' author='davidgodlove@gmail.com'%}
79
79
80
80
## Increasing the size of an existing image
81
81
You can increase the size of an image after it has been instantiated by using the `expand` Singularity sub-command as follows:
@@ -110,7 +110,7 @@ $ ls -lh container.img
110
110
111
111
Similar to the create sub-command, you can override the default size increase (which is 768MiB) by using the `--size` option.
112
112
113
-
{% include asciicast.html source='docs-create-expand.js' title='How to expand images' author='davidgodlove@gmail.com'%}
113
+
{% include asciicast.html source='docs-create-expand.js' uid='how-to-expand-images' title='How to expand images' author='davidgodlove@gmail.com'%}
114
114
115
115
## Mounting an image
116
116
Once an image has been created and an OS has been added with the [`import`](/docs-import) or [`bootstrap`](/docs-bootstrap) commands, you can use the [`shell`](/docs-shell) command to start an interactive shell within the container. But this is not possible when an image does not yet contain a functional OS or shell. For debugging, development, or simply inspecting an image that lacks a functional shell you can use the `mount` command like so:
@@ -133,7 +133,7 @@ Singularity: \w> ls -a
133
133
. .. lost+found
134
134
```
135
135
136
-
{% include asciicast.html source='docs-create-mount.js' title='How to mount an image' author='davidgodlove@gmail.com'%}
136
+
{% include asciicast.html source='docs-create-mount.js' uid='how-to-mount-an-image' title='How to mount an image' author='davidgodlove@gmail.com'%}
137
137
138
138
At this point the image just contains a bare file system because we haven't used something like the [`bootstrap`](docs-bootstrap) or [`import`](docs-import) commands to install an OS.
139
139
@@ -147,7 +147,7 @@ $ sudo -i
147
147
# singularity mount --writable /home/user/container.img /tmp/container
148
148
```
149
149
150
-
{% include asciicast.html source='docs-create-rootmount.js' title='How to mount an image and copy files to it' author='davidgodlove@gmail.com'%}
150
+
{% include asciicast.html source='docs-create-rootmount.js' uid='how-to-mount-and-copy' title='How to mount an image and copy files to it' author='davidgodlove@gmail.com'%}
151
151
152
152
## Copying, sharing, branching, and distributing your image
153
153
A primary goal of Singularity is mobility. The single file image format makes mobility easy.
0 commit comments