Skip to content

Commit

Permalink
[CI] Fix protobuf deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rvql authored and jianchang committed Mar 29, 2024
1 parent 589bc68 commit 0bcb532
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
6 changes: 5 additions & 1 deletion agent/docker/DockerfileToFix-aarch64.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \

# Install base dependencies
RUN yum install make epel-release centos-release-scl -y && yum -y install jq patch
RUN yum install gcc gcc-c++ curl unzip devtoolset-8-gcc devtoolset-8-gdb devtoolset-8-gcc-c++ devtoolset-8-binutils openssl-devel libpcap-devel perl-Digest-MD5 elfutils-libelf-devel-static glibc-static zlib-static git emacs-filesystem java-1.8.0-openjdk-devel dpdk dpdk-devel numactl numactl-devel numactl-libs protobuf-devel -y && \
RUN yum install gcc gcc-c++ curl unzip devtoolset-8-gcc devtoolset-8-gdb devtoolset-8-gcc-c++ devtoolset-8-binutils openssl-devel libpcap-devel perl-Digest-MD5 elfutils-libelf-devel-static glibc-static zlib-static git emacs-filesystem java-1.8.0-openjdk-devel dpdk dpdk-devel numactl numactl-devel numactl-libs -y && \
curl https://sh.rustup.rs -so rustup.sh; bash rustup.sh -y && \
source /opt/rh/devtoolset-8/enable && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/musl-devel-1.2.2-el7.aarch64.rpm --silent -O && \
Expand All @@ -28,6 +28,10 @@ RUN yum install gcc gcc-c++ curl unzip devtoolset-8-gcc devtoolset-8-gdb devtool
yum --disablerepo=* localinstall -y ./libdwarf-*.rpm && rm -rf libdwarf-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/libGoReSym-0.0.1-2.el8.aarch64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./libGoReSym-*.rpm && rm -rf libGoReSym-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/protobuf-3.6.1-4.el7.aarch64.rpm --silent -O && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/protobuf-compiler-3.6.1-4.el7.aarch64.rpm --silent -O && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/protobuf-devel-3.6.1-4.el7.aarch64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./protobuf-*.rpm && rm -rf protobuf-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/ebpftoolsbuilder-llvm-clang-11.0.0-2.el7.aarch64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ebpftoolsbuilder-llvm-clang-*.rpm && rm -rf ebpftoolsbuilder-llvm-clang-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/musl-clang-1.2.2-el7.aarch64.rpm --silent -O && \
Expand Down
36 changes: 20 additions & 16 deletions agent/docker/DockerfileToFix.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,27 @@ ENV RUSTUP_HOME=/usr/local/rustup \
RUN yum install make epel-release centos-release-scl -y && yum -y install jq patch

# 安装基础依赖#
RUN yum install curl devtoolset-11-gcc devtoolset-11-gdb devtoolset-11-gcc-c++ devtoolset-11-binutils devtoolset-11-gcc* openssl-devel libpcap-devel perl-Digest-MD5 elfutils-libelf-devel-static glibc-static zlib-static git java-1.8.0-openjdk-devel dpdk dpdk-devel numactl numactl-devel numactl-libs protobuf-devel -y && \
echo "source /opt/rh/devtoolset-11/enable" >> /etc/profile && \
curl https://sh.rustup.rs -so rustup.sh; bash rustup.sh -y
RUN curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/protoc --silent -O && chmod a+x protoc && mv protoc /usr/bin/ && whereis protoc && protoc --version && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/indent --silent -o /usr/bin/indent && chmod a+x /usr/bin/indent
RUN yum install curl devtoolset-11-gcc devtoolset-11-gdb devtoolset-11-gcc-c++ devtoolset-11-binutils devtoolset-11-gcc* openssl-devel libpcap-devel perl-Digest-MD5 elfutils-libelf-devel-static glibc-static zlib-static git java-1.8.0-openjdk-devel dpdk dpdk-devel numactl numactl-devel numactl-libs -y && \
echo "source /opt/rh/devtoolset-11/enable" >> /etc/profile && \
curl https://sh.rustup.rs -so rustup.sh; bash rustup.sh -y
RUN curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/protoc --silent -O && chmod a+x protoc && mv protoc /usr/bin/ && whereis protoc && protoc --version && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/indent --silent -o /usr/bin/indent && chmod a+x /usr/bin/indent

RUN curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/llvm-clang-11.0.0-2.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./llvm-clang-*.rpm && rm -rf llvm-clang-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/libdwarf-0.4.1-1.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./libdwarf-*.rpm && rm -rf libdwarf-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/bddisasm-1.34.10-1.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./bddisasm-*.rpm && rm -rf bddisasm-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/bcc-bpf-0.25.0-2.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./bcc-bpf-*.rpm && rm -rf bcc-bpf-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/libGoReSym-0.0.1-2.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./libGoReSym-*.rpm && rm -rf libGoReSym-*.rpm && \
yum clean all
RUN curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/llvm-clang-11.0.0-2.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./llvm-clang-*.rpm && rm -rf llvm-clang-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/libdwarf-0.4.1-1.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./libdwarf-*.rpm && rm -rf libdwarf-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/bddisasm-1.34.10-1.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./bddisasm-*.rpm && rm -rf bddisasm-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/bcc-bpf-0.25.0-2.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./bcc-bpf-*.rpm && rm -rf bcc-bpf-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/x86_64/libGoReSym-0.0.1-2.el7.x86_64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./libGoReSym-*.rpm && rm -rf libGoReSym-*.rpm && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/protobuf-3.6.1-4.el7.aarch64.rpm --silent -O && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/protobuf-compiler-3.6.1-4.el7.aarch64.rpm --silent -O && \
curl https://deepflow-ce.oss-cn-beijing.aliyuncs.com/pkg/compile/aarch64/protobuf-devel-3.6.1-4.el7.aarch64.rpm --silent -O && \
yum --disablerepo=* localinstall -y ./protobuf-*.rpm && rm -rf protobuf-*.rpm && \
yum clean all



Expand Down

0 comments on commit 0bcb532

Please sign in to comment.