Skip to content

How to pass through stdout?Β #50

@sarendipitee

Description

@sarendipitee

We have a bunch of images that need to be pushed to a registry so often, so we do them all in one big script. Problem is Gitlab's container registry constantly fails all the time so loop is a perfect fit for this.
Trying something like:

loop -s --summary -- scripts/push-images.sh (tried with -i as well)

But the problem is that there is zero output.

Whereas normally our scripts/push-images.sh outputs something like:

Pushing registry.gitlab.com/thing:prod
The push refers to repository [registry.gitlab.com/thing]
8850e5e866c3: Preparing
6d1eb370deee: Preparing
e6a9e93f2e3d: Preparing
f721b22510f1: Preparing
371e12a4bca7: Preparing
c97278a08a46: Preparing
7bff100f35cb: Preparing
c97278a08a46: Waiting

And updates as the scripts progress through each image.

Is there anyway to keep that stdout and print it to term live as loop receives it from the subprocess?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions