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

Add container build image commands #504

Closed
wants to merge 1 commit into from

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Apr 25, 2022

fixes: #424

TODO:

  • Add remove command
  • Add tests
  • Update container capabilities doc section

tag: Optional[str],
artifacts: Optional[str],
) -> Any:
body = {"containerfile_artifact": container_artifact, "tag": tag, "artifacts": artifacts}
Copy link
Member

Choose a reason for hiding this comment

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

I think, i would add a needs_capability here.

@@ -153,6 +164,10 @@ class PulpContainerPushRepositoryContext(PulpContainerBaseRepositoryContext):
"roles": [PluginRequirement("container", "2.11.0")],
}

def remove_image(self, digest: str) -> Any:
body = {"digest": digest}
Copy link
Member

Choose a reason for hiding this comment

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

and here

@lubosmj
Copy link
Member

lubosmj commented Mar 10, 2023

@gerrod3, are you able to continue working on this PR? We fixed the issues with the builder on the plugin's side (pulp/pulp_container@a6c2103).

@gerrod3
Copy link
Contributor Author

gerrod3 commented Mar 10, 2023

@gerrod3, are you able to continue working on this PR? We fixed the issues with the builder on the plugin's side (pulp/pulp_container@a6c2103).

Yes, I can resume work on it now.

@mdellweg mdellweg changed the title Add container build/remove image commands Add container build image commands Jun 21, 2023
)
@click.option("--tag", help=_("A tag name for the new image being built."))
@click.option(
"--artifacts",
Copy link
Member

Choose a reason for hiding this comment

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

With a new release of pulp-container (coming in 1 month), we will no longer support this argument, see pulp/pulp_container#1687. Instead, we will start using file_repository_version as a build context.

Should we close this PR or are we going to address this change soon-ish? The feature is still shipped as a tech-preview. However, I do not think we should support workflows using the artifacts endpoint anymore due to pulp/pulpcore#5525.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I haven't touched this PR is a while, so maybe it's best to close it.

@lubosmj lubosmj closed this Jul 31, 2024
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.

Add build/remove image commands to container
3 participants