Path: blob/main/kokoro/linux/license_check.sh
1560 views
#!/bin/bash12# Copyright (C) 2020 Google Inc.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 at7#8# http://www.apache.org/licenses/LICENSE-2.09#10# Unless required by applicable law or agreed to in writing, software11# 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 and14# limitations under the License.1516set -e # Fail on any error.1718SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"19ROOT_DIR="$( cd "${SCRIPT_DIR}/../.." >/dev/null 2>&1 && pwd )"2021docker run --rm -i \22--volume "${ROOT_DIR}:${ROOT_DIR}:ro" \23--workdir "${ROOT_DIR}" \24--env ROOT_DIR="${ROOT_DIR}" \25--env SCRIPT_DIR="${SCRIPT_DIR}" \26--entrypoint "${SCRIPT_DIR}/license_check_docker.sh" \27"gcr.io/shaderc-build/radial-build:latest"282930