Created
October 19, 2022 23:55
-
-
Save kisasexypantera94/b5ee95469fd3af6b635be87300dbb741 to your computer and use it in GitHub Desktop.
repro img for faiss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nvidia/cuda:11.6.2-devel-ubuntu20.04 | |
| ENV TZ=Asia/Yerevan | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # disable certificate check (for kitware) | |
| RUN touch /etc/apt/apt.conf.d/99verify-peer.conf && \ | |
| echo >> /etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer false }" | |
| # add kitware repo so that fresh cmake could be installed | |
| RUN apt -y update | |
| RUN apt install -y software-properties-common gpg wget flex bison pkg-config | |
| RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null && \ | |
| apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' | |
| RUN apt -y update | |
| RUN apt install --reinstall ca-certificates | |
| RUN apt install kitware-archive-keyring | |
| RUN apt -y purge --auto-remove cmake && apt -y install cmake | |
| # install essential tools | |
| RUN apt -y update && \ | |
| apt -y install clang make cmake python3-pip git | |
| # Conan | |
| RUN pip3 install meson ninja conan | |
| RUN conan profile new default --detect && \ | |
| conan profile update settings.compiler.libcxx=libstdc++11 default | |
| # Faiss | |
| RUN pip3 install numpy | |
| RUN apt install -y libblas-dev liblapack-dev swig | |
| RUN wget https://github.com/facebookresearch/faiss/archive/refs/tags/v1.7.2.tar.gz && \ | |
| tar xf v1.7.2.tar.gz && \ | |
| cd faiss-1.7.2 && mkdir build && cd build && cmake -DBUILD_TESTING=0 .. && make -j faiss && make install | |
| CMD bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment