Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.13 KB

File metadata and controls

45 lines (33 loc) · 1.13 KB

The Python Builder

This directory contains the definition of the Python builder.

Build the Image

To build the builder image for ubuntu-18 builder, run:

bazel build //builders/python:builder.image

To build the builder image for ubuntu-22 builder, run:

bazel build //builders/python:builder_22.image

To build the builder image for ubuntu-24 builder, run:

bazel build //builders/python:builder_24.image

Build a Test Application

To build the sample application simple, run:

pack build sample-python --builder gcp/python --path builders/testdata/python/generic/simple/ --trust-builder -v

Acceptance Tests

To run the acceptance tests across all the products, run:

bazel test //builders/python/acceptance:acceptance_test

Test a Single Product

For each product, there exists a suite of tests. The build target is builders/python/acceptance:<product>_test. Where <product> is replaced with the acronym of the product. For example, to run the tests for Google Cloud Functions, run:

bazel test //builders/python/acceptance:gcf_test