Add centos-9-stream compile dockerfile (#153)
Some checks are pending
Build / build (push) Waiting to run

* Add centos-9-stream compile  dockerfile

* Add the link dir for fuse dep

* Update dev.centos9.dockerfile

* Update dev.centos9.dockerfile

* Update dev.centos9.dockerfile

* Update dev.centos9.dockerfile
This commit is contained in:
bugwz 2025-03-12 13:49:54 +08:00 committed by GitHub
parent b71ffc5560
commit b22f7153cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 2 deletions

View File

@ -0,0 +1,46 @@
FROM quay.io/centos/centos:stream9
RUN dnf clean all \
&& dnf config-manager --set-enabled crb \
&& dnf install -y epel-release \
&& dnf install -y wget git meson cmake cargo perl lld gcc gcc-c++ autoconf lz4 lz4-devel xz xz-devel \
double-conversion-devel libdwarf-devel libunwind-devel libaio-devel gflags-devel glog-devel \
libuv-devel gmock-devel gperftools gperftools-devel openssl-devel boost-static boost-devel mono-devel \
libevent-devel libibverbs-devel numactl-devel python3-devel \
&& dnf remove -y fuse \
&& dnf clean all \
&& echo "alias ll='ls -al'" >> /root/.bashrc
RUN mkdir -p /tmp/fuse \
&& cd /tmp/fuse \
&& wget https://github.com/libfuse/libfuse/releases/download/fuse-3.16.2/fuse-3.16.2.tar.gz \
&& tar -zxf fuse-3.16.2.tar.gz \
&& cd fuse-3.16.2 \
&& mkdir build \
&& cd build \
&& meson setup .. \
&& meson configure -D default_library=both \
&& meson setup --reconfigure ../ \
&& ninja \
&& ninja install \
&& cd / \
&& rm -rf /tmp/fuse
RUN mkdir -p /tmp/foundationdb \
&& cd /tmp/foundationdb \
&& wget https://github.com/apple/foundationdb/releases/download/7.3.63/foundationdb-clients-7.3.63-1.el7.x86_64.rpm \
&& wget https://github.com/apple/foundationdb/releases/download/7.3.63/foundationdb-server-7.3.63-1.el7.x86_64.rpm \
&& rpm -ivh foundationdb-clients-7.3.63-1.el7.x86_64.rpm \
&& rpm -ivh foundationdb-server-7.3.63-1.el7.x86_64.rpm \
&& cd / \
&& rm -rf /tmp/foundationdb
RUN mkdir -p /tmp/clang \
&& cd /tmp/clang \
&& wget https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.6/clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4.tar.xz \
&& tar -xf clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4.tar.xz \
&& mv clang+llvm-14.0.6-x86_64-linux-gnu-rhel-8.4 /usr/local/clang-llvm-14 \
&& ln -s /usr/local/clang-llvm-14/bin/clang++ /usr/local/clang-llvm-14/bin/clang++-14 \
&& ln -s /usr/local/clang-llvm-14/bin/clang-format /usr/local/clang-llvm-14/bin/clang-format-14 \
&& ln -s /usr/local/clang-llvm-14/bin/clang-tidy /usr/local/clang-llvm-14/bin/clang-tidy-14 \
&& ln -s /usr/local/clang-llvm-14/bin/clang-format /usr/bin/clang-format-14 \
&& echo "export PATH=\$PATH:/usr/local/clang-llvm-14/bin" >> /root/.bashrc \
&& cd / \
&& rm -rf /tmp/clang
CMD ["/bin/bash"]

View File

@ -1,7 +1,7 @@
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
link_directories(/usr/local/lib/x86_64-linux-gnu/) link_directories(/usr/local/lib/x86_64-linux-gnu/ /usr/lib64 /usr/local/lib64)
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64") elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
link_directories(/usr/local/lib/aarch64-linux-gnu/) link_directories(/usr/local/lib/aarch64-linux-gnu/ /usr/lib64 /usr/local/lib64)
endif() endif()
target_add_lib(hf3fs_fuse common core-app meta-client storage-client fuse3 client-lib-common) target_add_lib(hf3fs_fuse common core-app meta-client storage-client fuse3 client-lib-common)