mirror of
https://github.com/deepseek-ai/3FS
synced 2025-06-26 18:16:45 +00:00
Add centos-9-stream compile dockerfile
This commit is contained in:
parent
3a30c53bf2
commit
5aabd70b43
44
dockerfile/dev.centos9.dockerfile
Normal file
44
dockerfile/dev.centos9.dockerfile
Normal file
@ -0,0 +1,44 @@
|
||||
FROM quay.io/centos/centos:stream9
|
||||
RUN dnf clean all \
|
||||
&& dnf install -y epel-release 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 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"]
|
||||
Loading…
Reference in New Issue
Block a user