|
| 1 | +#docker build -t ibl/yass:base . |
| 2 | +FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 |
| 3 | + |
| 4 | +# link the cuda libraries |
| 5 | +ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH |
| 6 | + |
| 7 | +# setup time zone for tz |
| 8 | +ENV TZ=Europe/Paris |
| 9 | +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| 10 | + |
| 11 | +# Install python3.7 |
| 12 | +RUN apt-get update |
| 13 | +RUN apt-get install -y software-properties-common wget |
| 14 | +RUN add-apt-repository ppa:deadsnakes/ppa |
| 15 | +RUN apt-get update |
| 16 | +RUN apt-get install -y python3.7 python3.7-dev python3.7-tk python3-pip python3.7-venv git ffmpeg libgtk-3-dev |
| 17 | + |
| 18 | +# Install Python dependencies |
| 19 | +ARG PYTHON=python3.7 |
| 20 | +ENV LANG C.UTF-8 |
| 21 | +ENV CONDA_PATH=/opt/anaconda3 |
| 22 | +ENV ENVIRONMENT_NAME=main |
| 23 | +SHELL ["/bin/bash", "-c"] |
| 24 | + |
| 25 | +# Download and install Anaconda. |
| 26 | +ENV LATEST_CONDA_SCRIPT "Anaconda3-5.3.1-Linux-x86_64.sh" |
| 27 | +ENV PATH="/root/anaconda2/bin:${PATH}" |
| 28 | + |
| 29 | +RUN wget https://repo.continuum.io/archive/$LATEST_CONDA_SCRIPT |
| 30 | + |
| 31 | +RUN bash $LATEST_CONDA_SCRIPT -b -p /home/anaconda3 \ |
| 32 | + && echo "export PATH=/home/anaconda/bin:$PATH" >> ~/.bashrc \ |
| 33 | + && /bin/bash -c "source /root/.bashrc" |
| 34 | + |
| 35 | +ENV PATH /home/anaconda3/bin:$PATH |
| 36 | + |
| 37 | +RUN conda install pytorch==1.2 |
| 38 | +#RUN rm $LATEST_CONDA_SCRIPT |
| 39 | +#conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch |
| 40 | + |
| 41 | +RUN git clone https://github.com/paninski-lab/yass \ |
| 42 | + && cd yass \ |
| 43 | + && pip --no-cache-dir install -e . \ |
| 44 | + && cd src/gpu_bspline_interp \ |
| 45 | + && python setup.py install --force \ |
| 46 | + && cd .. \ |
| 47 | + && cd gpu_rowshift \ |
| 48 | + && python setup.py install --force \ |
| 49 | + && cd ../.. \ |
| 50 | + && pip install . |
| 51 | + |
| 52 | +RUN pip install scipy==1.2.0 |
| 53 | +#cd yass/samples/10chan |
| 54 | +#yass sort config.yaml |
0 commit comments