Functions | |
| def | add_files_to_image (image, with_files, label=None) |
| def | build_all_images_for_lang (lang) |
| def | build_all_images_for_release (lang, release) |
| def | build_image_jobspec (runtime, env, gcr_tag, stack_base) |
| def | checkout_grpc_stack (lang, release) |
| def | cleanup () |
| def | maybe_apply_patches_on_git_tag (stack_base, lang, release) |
Variables | |
| string | _BUILD_INFO = '/var/local/build_info' |
| string | _IMAGE_BUILDER = 'tools/run_tests/dockerize/build_interop_image.sh' |
| _LANGUAGES = list(client_matrix.LANG_RUNTIME_MATRIX.keys()) | |
| _RELEASES | |
| action | |
| argp = argparse.ArgumentParser(description='Run interop tests.') | |
| args = argp.parse_args() | |
| choices | |
| const | |
| default | |
| do_newline | |
| def | docker_images = build_all_images_for_lang(lang) |
| list | docker_images_cleanup = [] |
| help | |
| image | |
| list | languages = ['all'] else _LANGUAGES |
| nargs | |
| python_util_dir | |
| def create_matrix_images.add_files_to_image | ( | image, | |
| with_files, | |||
label = None |
|||
| ) |
Add files to a docker image. image: docker image name, i.e. grpc_interop_java:26328ad8 with_files: additional files to include in the docker image. label: label string to attach to the image.
Definition at line 101 of file create_matrix_images.py.
| def create_matrix_images.build_all_images_for_lang | ( | lang | ) |
Build all docker images for a language across releases and runtimes.
Definition at line 163 of file create_matrix_images.py.
| def create_matrix_images.build_all_images_for_release | ( | lang, | |
| release | |||
| ) |
Build all docker images for a release across all runtimes.
Definition at line 194 of file create_matrix_images.py.
| def create_matrix_images.build_image_jobspec | ( | runtime, | |
| env, | |||
| gcr_tag, | |||
| stack_base | |||
| ) |
Build interop docker image for a language with runtime. runtime: a <lang><version> string, for example go1.8. env: dictionary of env to passed to the build script. gcr_tag: the tag for the docker image (i.e. v1.3.0). stack_base: the local gRPC repo path.
Definition at line 140 of file create_matrix_images.py.
| def create_matrix_images.checkout_grpc_stack | ( | lang, | |
| release | |||
| ) |
Invokes 'git check' for the lang/release and returns directory created.
Definition at line 290 of file create_matrix_images.py.
| def create_matrix_images.cleanup | ( | ) |
Definition at line 241 of file create_matrix_images.py.
| def create_matrix_images.maybe_apply_patches_on_git_tag | ( | stack_base, | |
| lang, | |||
| release | |||
| ) |
Definition at line 251 of file create_matrix_images.py.
|
private |
Definition at line 47 of file create_matrix_images.py.
|
private |
Definition at line 37 of file create_matrix_images.py.
|
private |
Definition at line 38 of file create_matrix_images.py.
|
private |
Definition at line 40 of file create_matrix_images.py.
| create_matrix_images.action |
Definition at line 69 of file create_matrix_images.py.
| create_matrix_images.argp = argparse.ArgumentParser(description='Run interop tests.') |
Definition at line 49 of file create_matrix_images.py.
| create_matrix_images.args = argp.parse_args() |
Definition at line 98 of file create_matrix_images.py.
| create_matrix_images.choices |
Definition at line 56 of file create_matrix_images.py.
| create_matrix_images.const |
Definition at line 86 of file create_matrix_images.py.
| create_matrix_images.default |
Definition at line 51 of file create_matrix_images.py.
| create_matrix_images.do_newline |
Definition at line 352 of file create_matrix_images.py.
| def create_matrix_images.docker_images = build_all_images_for_lang(lang) |
Definition at line 349 of file create_matrix_images.py.
| list create_matrix_images.docker_images_cleanup = [] |
Definition at line 247 of file create_matrix_images.py.
| create_matrix_images.help |
Definition at line 52 of file create_matrix_images.py.
| create_matrix_images.image |
Definition at line 352 of file create_matrix_images.py.
| list create_matrix_images.languages = ['all'] else _LANGUAGES |
Definition at line 347 of file create_matrix_images.py.
| create_matrix_images.nargs |
Definition at line 64 of file create_matrix_images.py.
| create_matrix_images.python_util_dir |
Definition at line 31 of file create_matrix_images.py.