Skip to content

Docker build doesn't work on macOS with Docker Desktop #40270

Description

@huang195

Title: Docker build doesn't work

Description:

I followed the instructions here: https://github.com/envoyproxy/envoy/blob/main/bazel/README.md#building-envoy-with-the-ci-docker-image, to build Envoy proxy from the head of the main branch. However, I'm encountering the following error message:

haihuang@Mac:~/works/go/src/github.com/envoyproxy/envoy$ ./ci/run_envoy_docker.sh './ci/do_ci.sh release.server_only'
ENVOY_SRCDIR=/source
ENVOY_BUILD_TARGET=//source/exe:envoy-static
ENVOY_BUILD_ARCH=aarch64
Setting test_tmpdir to /build/tmp.
building using 16 CPUs
building for aarch64
clang toolchain configured: arm64-clang
Existing output directory found (/build/envoy/arm64/bin), removing ...
Building with:
  build options: --repository_cache=/build/repository_cache --experimental_repository_cache_hardlinks --verbose_failures --experimental_generate_json_trace_profile --test_env=HEAPCHECK= --test_tmpdir=/build/tmp --config=arm64-clang
  release options:  --stripopt=--strip-all -c opt
  binary dir:  /build/envoy/arm64/bin
Starting local Bazel server and connecting to it...
ERROR: /source/WORKSPACE:21:25: fetching python_repository rule //external:python3_12_aarch64-unknown-linux-gnu: java.io.IOException: unlinkat (/build/bazel_root/base/external/python3_12_aarch64-unknown-linux-gnu/share/terminfo/P) (Directory not empty)
ERROR: no such package '@@python3_12_aarch64-unknown-linux-gnu//': unlinkat (/build/bazel_root/base/external/python3_12_aarch64-unknown-linux-gnu/share/terminfo/P) (Directory not empty)
ERROR: /build/bazel_root/base/external/rules_pkg/pkg/private/tar/BUILD:47:10: @@rules_pkg//pkg/private/tar:build_tar depends on @@python3_12_aarch64-unknown-linux-gnu//:python_runtimes in repository @@python3_12_aarch64-unknown-linux-gnu which failed to fetch. no such package '@@python3_12_aarch64-unknown-linux-gnu//': unlinkat (/build/bazel_root/base/external/python3_12_aarch64-unknown-linux-gnu/share/terminfo/P) (Directory not empty)
ERROR: Analysis of target '//distribution/binary:release' failed; build aborted: Analysis failed
INFO: Elapsed time: 11.719s, Critical Path: 0.71s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
FAILED: 
    Fetching repository @@cmake-3.23.2-linux-aarch64; starting

I tried to use the latest tagged version from the repo, but I'm getting similar error messages. Shouldn't the Docker build image have all the necessary tools and dependencies pre-installed or am I missing something obvious here? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions