Skip to content

Conversation

@vsoch
Copy link
Member

@vsoch vsoch commented Jun 18, 2021

The previous singularity pull used to write to stdout so it would be possible to see the messages. The current writes completely to stderr, so the default for the pull function stream should be to return that.

Example:

from spython.main import Client

image, stream = Client.pull('docker://busybox', stream=True)
singularity pull --name busybox.sif docker://busybox

for line in stream:
    print(line.strip())

# here is the content of the lines
INFO:    Converting OCI blobs to SIF format
INFO:    Starting build...
Getting image source signatures
Copying blob sha256:b71f96345d44b237decc0c2d6c2f9ad0d17fde83dad7579608f1f0764d9686f2
Copying config sha256:37c1493cd5ea164a5fc4ea85b649851682ca5a954f3d301530042af65290a5c7
Writing manifest to image destination
Storing signatures
2021/06/17 21:45:23  info unpack layer: sha256:b71f96345d44b237decc0c2d6c2f9ad0d17fde83dad7579608f1f0764d9686f2
INFO:    Creating SIF file...

Signed-off-by: vsoch vsoch@users.noreply.github.com

the previous singularity pull used to write to stdout so it would be possible
to see the messages. The current writes completely to stderr, so the default
for the pull function stream should be to return that.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch merged commit b746a81 into master Jun 18, 2021
@vsoch vsoch deleted the fix/pull-output-bug branch June 18, 2021 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants