Skip to content

Commit

Permalink
Update the VSAG installation dockerfile (#649)
Browse files Browse the repository at this point in the history
Update the vsag installation dockerfile

Co-authored-by: Jingxuan Su <[email protected]>
  • Loading branch information
PPPoint-t and Jant1L authored Aug 29, 2024
1 parent 297fe4e commit 7a16261
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions ci/images/tugraph-compile-centos7-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -358,20 +358,12 @@ RUN wget -O /tmp/openblas-faiss.tar.gz https://tugraph-web.oss-cn-beijing.aliyun
&& rm -rf /tmp/openblas-faiss /tmp/openblas-faiss.tar.gz && ldconfig

# install vsag
RUN wget -O /tmp/binutils-gcc-vsag.tar.gz https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/deps/binutils-gcc-vsag.tar.gz \
&& tar -xzvf /tmp/binutils-gcc-vsag.tar.gz -C /tmp && cd /tmp/gcc-14.2.0 \
&& yum install -y gmp-devel mpfr-devel libmpc-devel \
&& ./configure --disable-multilib --enable-languages=c,c++,fortran --prefix=/opt/gcc-14.2.0 \
&& make -j$(nproc) && make install && cd /tmp/binutils-2.43.1 \
&& ./configure --prefix=/usr/local/binutils-2.43.1 --with-sysroot=/opt/gcc-14.2.0 --libdir=/opt/gcc-14.2.0/lib64 --disable-multilib \
&& make -j$(nproc) && make install && cd /tmp/vsag && sh ./scripts/deps/install_deps_centos.sh \
&& PATH=/usr/local/binutils-2.43.1/bin:/opt/gcc-14.2.0/bin:$PATH \
LD_LIBRARY_PATH=/opt/gcc-14.2.0/lib64:/usr/lib64:$LD_LIBRARY_PATH \
LDFLAGS="-L/opt/gcc-14.2.0/lib64" \
LD=/opt/gcc-14.2.0/bin/ld \
make release && make install \
&& yum erase -y gmp-devel mpfr-devel libmpc-devel && yum clean all \
&& rm -rf /tmp/gcc-14.2.0 /tmp/binutils-2.43.1 /tmp/vsag /tmp/binutils-gcc-vsag.tar.gz /opt/gcc-14.2.0 /opt/intel /usr/local/binutils-2.43.1
RUN wget -O /tmp/vsag.tar.gz https://tugraph-web.oss-cn-beijing.aliyuncs.com/tugraph/deps/vsag.tar.gz \
&& tar -xzvf /tmp/vsag.tar.gz -C /tmp \
&& cd /tmp/vsag && sh ./scripts/deps/install_deps_centos.sh \
&& yum install -y libgfortran5.x86_64 && ln -s /usr/lib64/libgfortran.so.5.0.0 /usr/local/lib/libgfortran.so \
&& ldconfig && make release VSAG_CMAKE_ARGS="-S. -Bbuild -DDISABLE_SSE_FORCE=OFF -DDISABLE_AVX_FORCE=OFF -DDISABLE_AVX2_FORCE=OFF -DDISABLE_AVX512_FORCE=ON" \
&& make install && rm -rf /tmp/vsag /tmp/vsag.tar.gz /opt/intel

ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk \
LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/usr/lib/jvm/java-11-openjdk/lib/server:$LD_LIBRARY_PATH \
Expand Down

0 comments on commit 7a16261

Please sign in to comment.