Skip to content

Conversation

@AbhinavPradeep
Copy link
Contributor

Summary

Adds option "dockerfile" to the --output-format flag for gen-build-spec. For Python packages, it generates a dockerfile built on the oraclelinux:9 image to rebuild the package.

Description of changes

  • Modified build_spec_generator.py to add functionality to infer the latest Python interpreter version satisfying the packages constraints, and generate a dockerfile that would build that Python interpreter from source. The dockerfile then proceeds to use that built interpreter to build the package itself.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 23, 2025
Copy link
Member

@behnazh-w behnazh-w left a comment

Choose a reason for hiding this comment

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

  • Please add an example for this new feature to the docs/source/pages/tutorials/rebuild_third_party_artifacts.rst tutorial.
  • Add the docker format to the --output-formatCLI arg description.
  • Update docs/source/pages/cli_usage/command_gen_build_spec.rst.

@AbhinavPradeep AbhinavPradeep force-pushed the abhinav/generate-dockerfile-output branch from 61a5195 to 853852b Compare November 26, 2025 23:22
@AbhinavPradeep AbhinavPradeep marked this pull request as ready for review November 27, 2025 04:40
@AbhinavPradeep AbhinavPradeep marked this pull request as draft November 27, 2025 04:40
@AbhinavPradeep AbhinavPradeep marked this pull request as ready for review November 27, 2025 05:30
Copy link
Member

@behnazh-w behnazh-w left a comment

Choose a reason for hiding this comment

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

Please add an integration test for the docker package used in the tutorial, and use the tutorial tag. For now, we can just compare the dockerfile output with the expected Dockerfile.

@AbhinavPradeep AbhinavPradeep force-pushed the abhinav/generate-dockerfile-output branch from fac36f4 to 98a9b5e Compare December 1, 2025 04:32
@AbhinavPradeep AbhinavPradeep force-pushed the abhinav/generate-dockerfile-output branch from c6dd99b to 1db6614 Compare December 3, 2025 05:44
@AbhinavPradeep AbhinavPradeep merged commit 2923f5e into main Dec 3, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants