Skip to content

Commit

Permalink
changes for bundled mksquashfs
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Dykstra <[email protected]>
  • Loading branch information
DrDaveD committed Mar 4, 2025
1 parent 80061f2 commit cfc0493
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 1 deletion.
2 changes: 2 additions & 0 deletions appendix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,7 @@ currently residing in the Docker daemon's internal storage:
Storing signatures
2019/12/11 14:53:24 info unpack layer: sha256:eb7c47c7f0fd0054242f35366d166e6b041dfb0b89e5f93a82ad3a3206222502
INFO: Creating SIF file...
[=====================================================================] 100 % 0s
{Project}>
The ``{ENVPREFIX}_DOCKER_HOST`` or ``DOCKER_HOST`` environment variables may be
Expand Down Expand Up @@ -1162,6 +1163,7 @@ from a docker image stored in a ``docker save`` formatted tar file:
Storing signatures
2019/12/11 15:25:09 info unpack layer: sha256:eb7c47c7f0fd0054242f35366d166e6b041dfb0b89e5f93a82ad3a3206222502
INFO: Creating SIF file...
[=====================================================================] 100 % 0s
{Project}>
Keywords
Expand Down
14 changes: 14 additions & 0 deletions build_a_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,20 @@ To show help about the options available for selected compressor:
$ mksquashfs squashfs-root out.squashfs -comp zstd -Xhelp
Non-gzip squashfs compression might not work with some installations.
However, note that by default the {command} command now uses its own
bundled recent version of mksquashfs that should have the maximum
compressors enabled. So you might want to explore the help on that
version, for example by setting its directory early in your PATH like
this:

.. code::
$ PATH=$({command} buildcfg | sed -n 's,^LIBEXECDIR=\(.*\),\1/{command}/bin,p'):$PATH
Also note that by using non-default compression methods that the
resulting SIF file might not be usable by installations that do not have
the decompression method available. This can be especially true for
older versions of {command}.

``--notest``
============
Expand Down
15 changes: 15 additions & 0 deletions definition_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ command. This flag accepts a ``varname=value`` pair, as shown here:
2024/03/08 14:17:24 info unpack layer: sha256:f4bb4e8dca02be491b4f72d2ef2127a64ce49c48d0d9c0a0fcaffa625067679d
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================] 100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand All @@ -825,6 +826,8 @@ the path to that file specified using the ``--build-arg-file`` flag to the
2024/03/08 14:17:24 info unpack layer: sha256:f4bb4e8dca02be491b4f72d2ef2127a64ce49c48d0d9c0a0fcaffa625067679d
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down Expand Up @@ -879,6 +882,8 @@ using ``--build-arg`` flags:
INFO: Adding environment to container
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down Expand Up @@ -917,6 +922,8 @@ path to that file using the ``--build-arg-file`` flag:
INFO: Adding environment to container
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down Expand Up @@ -952,6 +959,8 @@ Or one can use a combination of both strategies:
INFO: Adding environment to container
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down Expand Up @@ -986,6 +995,8 @@ last occurrence will take precedence:
INFO: Adding environment to container
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down Expand Up @@ -1024,6 +1035,8 @@ command line will take precedence:
INFO: Adding environment to container
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down Expand Up @@ -1090,6 +1103,8 @@ using the ``%arguments`` section, as shown here:
2024/03/08 14:52:53 info unpack layer: sha256:f4bb4e8dca02be491b4f72d2ef2127a64ce49c48d0d9c0a0fcaffa625067679d
INFO: Adding runscript
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: ./my_container.sif
$ {command} run ./my_container.sif
Expand Down
6 changes: 6 additions & 0 deletions docker_and_oci.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ the container that's called ``sylabsio/lolcow:latest``:
2021/10/04 14:50:21 info unpack layer: sha256:16ec32c2132b43494832a05f2b02f7a822479f8250c173d0ab27b3de78b2f058
2021/10/04 14:50:23 info unpack layer: sha256:5ca731fc36c28789c5ddc3216563e8bfca2ab3ea10347e07554ebba1c953242e
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
_____________________________
< Mon Oct 4 14:50:30 CDT 2021 >
-----------------------------
Expand Down Expand Up @@ -672,6 +674,8 @@ name:
Writing manifest to image destination
Storing signatures
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: lolcow_from_docker_cache.sif
The tag name must be included in the URI. Unlike when pulling from a
Expand Down Expand Up @@ -750,6 +754,8 @@ rather than an object hosted by a service, it uses ``:<filename>``, not
Writing manifest to image destination
Storing signatures
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: lolcow_tar.sif
.. note::
Expand Down
4 changes: 4 additions & 0 deletions gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ to a SIF before you start working with it:
$ {command} pull docker://tensorflow/tensorflow:latest-gpu
...
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: tensorflow_latest-gpu.sif
Then run the container with GPU support:
Expand Down Expand Up @@ -457,6 +459,8 @@ to a SIF before you start working with it:
$ {command} pull docker://rocm/tensorflow:latest
...
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: tensorflow_latest.sif
Then run the container with GPU support:
Expand Down
2 changes: 2 additions & 0 deletions oci_runtime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ exists locally. (Recall:
Writing manifest to image destination
Storing signatures
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
INFO: Build complete: busybox_latest.sif
This is one way to bootstrap creation of this image in SIF that
Expand Down
4 changes: 3 additions & 1 deletion registry.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ by passing them the same ``--authfile <path>`` flag:
Writing manifest to image destination
2023/09/28 13:15:46 info unpack layer: sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de
INFO: Creating SIF file...
[=====================================================================]
100 % 0s
Apptainer>
.. note::
Expand Down Expand Up @@ -182,4 +184,4 @@ both for the ``registry login`` / ``registry logout`` commands and for the `pull
<cli/{command}_run.html>`__,
`instance
<cli/{command}_instance.html>`__.
set of commands.
set of commands.

0 comments on commit cfc0493

Please sign in to comment.