github.com/kubewharf/katalyst-core@v0.5.3/build/lib/init.sh (about)

     1  #!/bin/bash
     2  
     3  # Copyright 2022 The Katalyst Authors.
     4  #
     5  # Licensed under the Apache License, Version 2.0 (the "License");
     6  # you may not use this file except in compliance with the License.
     7  # You may obtain a copy of the License at
     8  #
     9  #     http://www.apache.org/licenses/LICENSE-2.0
    10  #
    11  # Unless required by applicable law or agreed to in writing, software
    12  # distributed under the License is distributed on an "AS IS" BASIS,
    13  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  # See the License for the specific language governing permissions and
    15  # limitations under the License.
    16  
    17  TARGET_ARCHS=${TARGET_ARCHS:-""}
    18  
    19  OUTPUT_DIR=${ROOT_DIR}/output
    20  BIN_DIR=${OUTPUT_DIR}/bin
    21  DOCKERFILE=${ROOT_DIR}/build/dockerfiles/Dockerfile.local
    22  
    23  PROJECT_PREFIX=${PROJECT_PREFIX:-katalyst}
    24  GIT_VERSION=${GIT_VERSION:-$(git describe --abbrev=0 --tags --always)}
    25  GIT_COMMIT=$(git rev-parse HEAD)
    26  BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
    27  BUILD_IMAGES=${BUILD_IMAGES:-n}
    28  
    29  GO111MODULE=on