我正在尝试为特使构建自定义筛选器,但是该构建无法正常工作。我正在使用centos Dockerfile与Bazel一起构建。
build命令返回以下错误:
__________________________ CMake错误:CMake无法找到与“忍者”相对应的构建程序。 CMAKE_MAKE_PROGRAM未设置。您可能需要选择其他构建工具。 CMake错误:未设置内部必需的CMake变量所需的错误,可能未正确构建cmake。 缺少的变量是: CMAKE_C_COMPILER_ENV_VAR CMake错误:未设置内部必需的CMake变量所需的错误,可能未正确构建cmake。 缺少的变量是: CMAKE_C_COMPILER CMake错误:找不到cmake模块文件:/tmp/tmp.asroUfukiY/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake -配置不完整,发生了错误!
_____结束构建日志_____ rules_foreign_cc:构建脚本位置:bazel-out / host / bin / external / envoy / bazel / foreign_cc / zlib / logs / CMake_script.sh rules_foreign_cc:构建日志位置:bazel-out / host / bin / external / envoy / bazel / foreign_cc / zlib / logs / CMake.log
构建的Dockerfile
FROM centos:centos7
RUN yum update -y && yum install -y epel-release && yum groupinstall -y 'Development Tools' && yum install -y git wget
WORKDIR /etc/yum.repos.d/
RUN wget https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
RUN cat /etc/yum.repos.d/vbatts-bazel-epel-7.repo
RUN yum update && yum -y install bazel
WORKDIR /usr/src/
RUN git clone https://github.com/envoyproxy/envoy-filter-example.git envoy
WORKDIR /usr/src/envoy
RUN git submodule update --init
RUN bazel build //:envoy
有人可以帮我吗?