From 31ad472540f960320b1a53adc2b7cf65761b8044 Mon Sep 17 00:00:00 2001 From: George Williams Date: Mon, 3 Apr 2023 02:59:19 +0000 Subject: [PATCH] sync to try on another build machine --- t3/faiss_t3/Dockerfile | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/t3/faiss_t3/Dockerfile b/t3/faiss_t3/Dockerfile index 5720572f..c55ea521 100644 --- a/t3/faiss_t3/Dockerfile +++ b/t3/faiss_t3/Dockerfile @@ -1,21 +1,27 @@ -FROM nvidia/cuda:11.0-devel-ubuntu18.04 - -ENV PATH="/root/miniconda3/bin:${PATH}" -ARG PATH="/root/miniconda3/bin:${PATH}" +#FROM nvidia/cuda:11.0-devel-ubuntu18.04 +FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu18.04 # CONDA -RUN apt-get update && apt-get install -y wget build-essential git - -RUN wget \ - https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ - && mkdir /root/.conda \ - && bash Miniconda3-latest-Linux-x86_64.sh -b \ - && rm -f Miniconda3-latest-Linux-x86_64.sh \ - && conda --version \ - && conda install -c pytorch python=3.6.9 faiss-gpu cudatoolkit=11.0 +ENV PATH="/root/miniconda3/bin:${PATH}" +ARG PATH="/root/miniconda3/bin:${PATH}" +RUN apt-get update +RUN apt-get install -y wget +RUN apt-get install -y build-essential +RUN apt-get install -y git +RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.1.0-1-Linux-x86_64.sh +RUN bash Miniconda3-py38_23.1.0-1-Linux-x86_64.sh -b +RUN rm -f Miniconda3-py38_23.1.0-1-Linux-x86_64.sh +RUN conda --version +RUN conda create -n py38 python=3.8 -y +RUN echo "source activate env" > ~/.bashrc +RUN ls /opt/ +ENV PATH /opt/conda/envs/py38/bin:$PATH +RUN conda config --set remote_read_timeout_secs 300 +RUN conda install -c pytorch faiss-gpu +#RUN conda install cudatoolkit=11.0 RUN conda --version && which conda && which python && which pip3 # BIGANN