This directory contains the definition of the Python builder.
To build the builder image for ubuntu-18 builder, run:
bazel build //builders/python:builder.imageTo build the builder image for ubuntu-22 builder, run:
bazel build //builders/python:builder_22.imageTo build the builder image for ubuntu-24 builder, run:
bazel build //builders/python:builder_24.imageTo build the sample application simple, run:
pack build sample-python --builder gcp/python --path builders/testdata/python/generic/simple/ --trust-builder -vTo run the acceptance tests across all the products, run:
bazel test //builders/python/acceptance:acceptance_testFor 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