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

container: Add --write-commitid-to for image deploy #275

Merged
merged 1 commit into from
Apr 4, 2022

Conversation

cgwalters
Copy link
Member

Right now in coreos-assembler we have code that wants to know
the exact deploy root, and for that with layered images we need
the merge commit ID.

First, change the deploy API to return the image state. There's
no reason to just throw it away.

Add an option to the CLI which writes the commitid to a file.

Right now in coreos-assembler we have code that wants to know
the exact deploy root, and for that with layered images we need
the merge commit ID.

First, change the deploy API to return the image state.  There's
no reason to just throw it away.

Add an option to the CLI which writes the commitid to a file.
cgwalters added a commit to cgwalters/coreos-assembler that referenced this pull request Apr 4, 2022
This requires ostreedev/ostree-rs-ext#275

When `deploy-via-container: true` is used in combination with
the new `rpm-ostree container-encapsulate` from
coreos/rpm-ostree#3478

We need to use the ostree-container synthetic merge commit to find
the deployment.

(Actually, what we want is something more like `ostree admin status --json`,
 or I guess for now `rpm-ostree status --json` to work offline; but
 for now this is good too)
jlebon pushed a commit to coreos/coreos-assembler that referenced this pull request Apr 4, 2022
This requires ostreedev/ostree-rs-ext#275

When `deploy-via-container: true` is used in combination with
the new `rpm-ostree container-encapsulate` from
coreos/rpm-ostree#3478

We need to use the ostree-container synthetic merge commit to find
the deployment.

(Actually, what we want is something more like `ostree admin status --json`,
 or I guess for now `rpm-ostree status --json` to work offline; but
 for now this is good too)
@cgwalters cgwalters merged commit 85f7161 into ostreedev:main Apr 4, 2022
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.

2 participants