Skip to content

[PULP-1283] Use podman container for OpenAPI schema generation#187

Open
pedro-psb wants to merge 2 commits intopulp:mainfrom
pedro-psb:use-container-for-oagen
Open

[PULP-1283] Use podman container for OpenAPI schema generation#187
pedro-psb wants to merge 2 commits intopulp:mainfrom
pedro-psb:use-container-for-oagen

Conversation

@pedro-psb
Copy link
Member

@pedro-psb pedro-psb commented Mar 5, 2026

Replace the on-host installation approach with a podman container running pulp/pulp-minimal. Plugins are pip-installed from git URLs inside the container, then pulpcore-manager openapi generates the schemas.

Using pulp-minimal makes it easier to run because it has all required plugin's system dependencies, which avoids the pain of replicating that environment on an arbitrary host.

This also removes the CLI entrypoint for the openapi generation. The idea is enable creating openapi schemas on-the fly with the exact package sources that the documentation uses. So it doesn't make much sense to have a decoupled way of generating them here.

Assisted-by: Claude Code (claude-opus-4-6) noreply@anthropic.com
Closes: #178

@pedro-psb pedro-psb force-pushed the use-container-for-oagen branch from 86581f9 to 4072ef3 Compare March 5, 2026 17:20
@pedro-psb pedro-psb changed the title Use podman container for OpenAPI schema generation [PULP-1283] Use podman container for OpenAPI schema generation Mar 5, 2026
@pedro-psb pedro-psb force-pushed the use-container-for-oagen branch 2 times, most recently from 2b53b46 to 8092c2b Compare March 5, 2026 18:24
Replace the on-host installation approach with a podman container running
pulp/pulp-minimal. Plugins are pip-installed from git URLs inside
the container, then pulpcore-manager openapi generates the schemas.

Using pulp-minimal makes it easier to run because it has all required
plugin's system dependencies.

Also adds `pulp-docs openapi` Click subcommand and replaces the
argparse __main__ CLI.

Assisted-by: Claude Code (claude-opus-4-6) <noreply@anthropic.com>
Closes: pulp#178
@pedro-psb pedro-psb force-pushed the use-container-for-oagen branch from 9d70736 to 7e7525d Compare March 5, 2026 20:54
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.

[PULP-1283] Make openapi-generator run in container and with collected git repos

1 participant