[skip e2e] Add dependence google abseil for milvus builder and krte (#21214)

Signed-off-by: Bennu-Li <yunmei.li@zilliz.com>

Signed-off-by: Bennu-Li <yunmei.li@zilliz.com>
pull/21227/head
Bennu 2022-12-14 15:45:23 +08:00 committed by GitHub
parent 4592b969de
commit 66bf02d61b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 54 additions and 0 deletions

View File

@ -24,6 +24,7 @@ RUN yum install -y epel-release centos-release-scl-rh && yum install -y wget cur
echo "source scl_source enable llvm-toolset-7.0" >> /etc/profile.d/llvm-toolset-7.sh
ENV CLANG_TOOLS_PATH="/opt/rh/llvm-toolset-7.0/root/usr/bin"
ENV PATH=$PATH:"/opt/rh/devtoolset-7/root/usr/bin/"
# Install tbb
RUN source /etc/profile.d/devtoolset-7.sh && \
@ -58,6 +59,19 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://golang.org/dl/go1.18.3.linux-am
go clean --modcache && \
chmod -R 777 "$GOPATH" && chmod -R a+w $(go env GOTOOLDIR)
# Install google abseil
RUN wget https://github.com/abseil/abseil-cpp/archive/20220623.1.tar.gz && \
tar zxf 20220623.1.tar.gz && cd abseil-cpp-20220623.1 && \
sed -i 's/^#define ABSL_OPTION_USE_\(.*\) 2/#define ABSL_OPTION_USE_\1 0/' "absl/base/options.h" && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DABSL_BUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=yes \
-H. -Bcmake-out && \
cmake --build cmake-out -- && \
cmake --build cmake-out --target install -- && \
cd ../ && rm -rf ./abseil-cpp-20220623.1* && rm -rf 20220623.1.tar.gz*
RUN ln -s /go/bin/dlv /go/bin/dlv-dap
RUN echo 'root:root' | chpasswd

View File

@ -38,6 +38,19 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://golang.org/dl/go1.18.3.linux-am
go clean --modcache && \
chmod -R 777 "$GOPATH" && chmod -R a+w $(go env GOTOOLDIR)
# Install google abseil
RUN wget https://github.com/abseil/abseil-cpp/archive/20220623.1.tar.gz && \
tar zxf 20220623.1.tar.gz && cd abseil-cpp-20220623.1 && \
sed -i 's/^#define ABSL_OPTION_USE_\(.*\) 2/#define ABSL_OPTION_USE_\1 0/' "absl/base/options.h" && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DABSL_BUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=yes \
-H. -Bcmake-out && \
cmake --build cmake-out -- && \
cmake --build cmake-out --target install -- && \
cd ../ && rm -rf ./abseil-cpp-20220623.1* && rm -rf 20220623.1.tar.gz*
RUN ln -s /go/bin/dlv /go/bin/dlv-dap
RUN apt-get update && apt-get install -y --no-install-recommends \

View File

@ -38,6 +38,19 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://golang.org/dl/go1.18.3.linux-am
go clean --modcache && \
chmod -R 777 "$GOPATH" && chmod -R a+w $(go env GOTOOLDIR)
# Install google abseil
RUN wget https://github.com/abseil/abseil-cpp/archive/20220623.1.tar.gz && \
tar zxf 20220623.1.tar.gz && cd abseil-cpp-20220623.1 && \
sed -i 's/^#define ABSL_OPTION_USE_\(.*\) 2/#define ABSL_OPTION_USE_\1 0/' "absl/base/options.h" && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DABSL_BUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=yes \
-H. -Bcmake-out && \
cmake --build cmake-out -- && \
cmake --build cmake-out --target install -- && \
cd ../ && rm -rf ./abseil-cpp-20220623.1* && rm -rf 20220623.1.tar.gz*
RUN ln -s /go/bin/dlv /go/bin/dlv-dap
RUN apt-get update && apt-get install -y --no-install-recommends \

View File

@ -53,6 +53,8 @@ RUN echo "Installing Packages ..." \
software-properties-common \
unzip \
jq \
wget \
&& wget -qO- "https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local \
&& python3 -m pip install --no-cache-dir --upgrade pip \
&& rm -rf /var/lib/apt/lists/* \
&& echo "Installing Go ..." \
@ -61,6 +63,18 @@ RUN echo "Installing Packages ..." \
&& tar xzf "${GO_TARBALL}" -C /usr/local \
&& rm "${GO_TARBALL}"\
&& mkdir -p "${GOPATH}/bin" \
&& echo "Install google abseil ..." &&\
wget https://github.com/abseil/abseil-cpp/archive/20220623.1.tar.gz && \
tar zxf 20220623.1.tar.gz && cd abseil-cpp-20220623.1 && \
sed -i 's/^#define ABSL_OPTION_USE_\(.*\) 2/#define ABSL_OPTION_USE_\1 0/' "absl/base/options.h" && \
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DABSL_BUILD_TESTING=OFF \
-DBUILD_SHARED_LIBS=yes \
-H. -Bcmake-out && \
cmake --build cmake-out -- && \
cmake --build cmake-out --target install -- && \
cd ../ && rm -rf ./abseil-cpp-20220623.1* && rm -rf 20220623.1.tar.gz* \
&& echo "Installing kubectl, helm ..." \
&& curl -fsSL "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" --output /usr/local/bin/kubectl \
&& chmod 755 /usr/local/bin/kubectl \