()
| 712 | |
| 713 | @clean_errors |
| 714 | def main(): |
| 715 | cli_ctx = CLIContext.parse() |
| 716 | cli_ctx.setup_logging() |
| 717 | if not cli_ctx.components_selected: |
| 718 | log.warning( |
| 719 | "consider --py, --core, and/or --rgw for an abbreviated (faster) build." |
| 720 | ) |
| 721 | time.sleep(2) |
| 722 | |
| 723 | if cli_ctx.needs_build_dir: |
| 724 | check_build_dir(cli_ctx) |
| 725 | |
| 726 | if cli_ctx.pull: |
| 727 | pull_base_image(cli_ctx) |
| 728 | with Builder(cli_ctx) as builder: |
| 729 | for component in cli_ctx.build_components(): |
| 730 | builder.add(component) |
| 731 | builder.build() |
| 732 | |
| 733 | if cli_ctx.push: |
| 734 | push_image(cli_ctx) |
| 735 | |
| 736 | |
| 737 | if __name__ == "__main__": |
no test coverage detected