Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Describe how to boot local builds #512

Merged
merged 1 commit into from
May 6, 2024

Conversation

cgwalters
Copy link
Collaborator

We want to make this use case feel awesome; today it doesn't for multiple reasons.

We probably want a bootc status --booted-image which would print the digested pull spec to start.

Then one could at least podman pull $(bootc status --booted-image).

But we clearly also want to streamline exporting from the local ostree storage back into a container, which has some downsides/bugs right now.

We want to make this use case feel awesome; today it
doesn't for multiple reasons.

We probably want a `bootc status --booted-image` which
would print the digested pull spec to start.

Then one could at least `podman pull $(bootc status --booted-image)`.

But we clearly *also* want to streamline exporting from
the local ostree storage back into a container, which has some
downsides/bugs right now.

Signed-off-by: Colin Walters <[email protected]>
Copy link
Contributor

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I like bootc status --booted-image for ergonomics. Hopefully I can get #215 sorted out soon once all of the excitement of the week is over, then that fixes a lot of this.

@jeckersb jeckersb merged commit aa0f78a into containers:main May 6, 2024
17 checks passed
@ericcurtin
Copy link
Contributor

To workaround, no "bootc status --booted-image", I did this:

https://github.com/ericcurtin/dnf-bootc/blob/main/bootc.py

    def get_os_from_bootc_status(self):
        data = subprocess.run(["bootc", "status"], capture_output=True, text=True, check=True)
        data = yaml.safe_load(data.stdout)
        image = data['spec']['image']['image']
        return f"FROM {image}\n"

I notice there's a --booted option that didn't seem to make any difference to the output.

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