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-commit: support --squash to squash layers into one if users want. #13314

Merged

Conversation

flouthoc
Copy link
Collaborator

Allow users to commit containers into a single layer.

Usage

podman container commit --squash <name>

Closes: #12889

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 22, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: flouthoc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 22, 2022
Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Just a quick skim: it looks like some plumbing in the endpoints (including swagger docs) needs to be done

@flouthoc flouthoc force-pushed the container-commit-squash branch 2 times, most recently from aed2748 to 87f8185 Compare February 22, 2022 17:17
@flouthoc
Copy link
Collaborator Author

@vrothberg Thanks :) added to swagger as well. Lets see if tests passes.

@@ -77,6 +77,7 @@ func commitFlags(cmd *cobra.Command) {

flags.BoolVarP(&commitOptions.Pause, "pause", "p", false, "Pause container during commit")
flags.BoolVarP(&commitOptions.Quiet, "quiet", "q", false, "Suppress output")
flags.BoolVarP(&commitOptions.Squash, "squash", "s", false, "squash newly built layers into a single new layer")
Copy link
Member

Choose a reason for hiding this comment

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

Losing my marbles I am, I thought we had this for commit already....

@TomSweeneyRedHat
Copy link
Member

Changes LGTM, test unhappiness does not.

Allow users to commit containers into a single layer.

Usage
```bash
podman container commit --squash <name>
```

Signed-off-by: Aditya R <[email protected]>
@flouthoc flouthoc force-pushed the container-commit-squash branch from 87f8185 to fbbcb95 Compare February 23, 2022 12:08
@flouthoc
Copy link
Collaborator Author

@containers/podman-maintainers PTAL

@umohnani8
Copy link
Member

LGTM

@rhatdan
Copy link
Member

rhatdan commented Feb 23, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 23, 2022
@rhatdan rhatdan added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 23, 2022
@openshift-merge-robot openshift-merge-robot merged commit 991c90d into containers:main Feb 23, 2022
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add squash option to podman commit
6 participants