20260826 增加BER兼容告警与分类指标
This commit is contained in:
@@ -14,6 +14,10 @@ BUILDER_NAME="${BUILDER_NAME:-default}"
|
||||
INSTALL_BINFMT="${INSTALL_BINFMT:-1}"
|
||||
SAVE_IMAGE="${SAVE_IMAGE:-1}"
|
||||
LOAD_IMAGE="${LOAD_IMAGE:-1}"
|
||||
# BuildKit's default bridge network can differ from the Docker daemon proxy
|
||||
# configuration. Set BUILD_NETWORK=host when the build container needs the
|
||||
# host's known-good registry connectivity.
|
||||
BUILD_NETWORK="${BUILD_NETWORK:-default}"
|
||||
|
||||
usage() {
|
||||
cat <<'USAGE'
|
||||
@@ -216,6 +220,7 @@ echo "builder_source_image: $builder_source_image"
|
||||
echo "runtime_source_image: $runtime_source_image"
|
||||
echo "builder_local_image: $BUILDER_IMAGE"
|
||||
echo "runtime_local_image: $RUNTIME_IMAGE"
|
||||
echo "build_network: $BUILD_NETWORK"
|
||||
echo "source_commit: $SOURCE_COMMIT_FULL"
|
||||
echo "source_dirty: $SOURCE_DIRTY"
|
||||
echo "build_timestamp_utc: $BUILD_TIMESTAMP_UTC"
|
||||
@@ -225,6 +230,7 @@ if [[ "$LOAD_IMAGE" == "1" ]]; then
|
||||
docker buildx build \
|
||||
--platform "$target_platform" \
|
||||
--builder "$BUILDER_NAME" \
|
||||
--network "$BUILD_NETWORK" \
|
||||
--pull=false \
|
||||
--load \
|
||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||
@@ -242,6 +248,7 @@ else
|
||||
docker buildx build \
|
||||
--platform "$target_platform" \
|
||||
--builder "$BUILDER_NAME" \
|
||||
--network "$BUILD_NETWORK" \
|
||||
--pull=false \
|
||||
--output "type=docker,dest=$raw_tar_path" \
|
||||
--build-arg BUILDKIT_INLINE_CACHE=1 \
|
||||
|
||||
Reference in New Issue
Block a user