google.golang.org/grpc@v1.72.2/test/kokoro/psm-interop-build-go.sh (about)

     1  #!/usr/bin/env bash
     2  # Copyright 2024 gRPC authors.
     3  #
     4  # Licensed under the Apache License, Version 2.0 (the "License");
     5  # you may not use this file except in compliance with the License.
     6  # You may obtain a copy of the License at
     7  #
     8  #     http://www.apache.org/licenses/LICENSE-2.0
     9  #
    10  # Unless required by applicable law or agreed to in writing, software
    11  # distributed under the License is distributed on an "AS IS" BASIS,
    12  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  # See the License for the specific language governing permissions and
    14  # limitations under the License.
    15  set -eo pipefail
    16  
    17  #######################################
    18  # Builds test app Docker images and pushes them to GCR.
    19  # Called from psm_interop_kokoro_lib.sh.
    20  #
    21  # Globals:
    22  #   SRC_DIR: Absolute path to the source repo on Kokoro VM
    23  #   SERVER_IMAGE_NAME: Test server Docker image name
    24  #   CLIENT_IMAGE_NAME: Test client Docker image name
    25  #   GIT_COMMIT: SHA-1 of git commit being built
    26  #   DOCKER_REGISTRY: Docker registry to push to
    27  # Outputs:
    28  #   Writes the output of docker image build stdout, stderr
    29  #######################################
    30  psm::lang::build_docker_images() {
    31    local client_dockerfile="interop/xds/client/Dockerfile"
    32    local server_dockerfile="interop/xds/server/Dockerfile"
    33    psm::build::docker_images_generic "${client_dockerfile}" "${server_dockerfile}"
    34  }