Skip to content

Commit 6b09f2c

Browse files
committed
pykilosort container - initial version
1 parent 09c5815 commit 6b09f2c

3 files changed

Lines changed: 62 additions & 0 deletions

File tree

pykilosort/Dockerfile

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM nvidia/cuda:10.0-base-ubuntu18.04
2+
3+
LABEL maintainer="Vincent Prevosto <prevosto@mit.edu>"
4+
5+
# USER root
6+
# # Ubuntu package installs
7+
RUN apt update
8+
RUN apt install -y --no-install-recommends \
9+
libfftw3-dev \
10+
git \
11+
wget && \
12+
apt clean && \
13+
rm -rf /var/lib/apt/lists/*
14+
15+
# Make bash the default shell, for compatibility with conda
16+
# SHELL [ "/bin/bash", "--login", "-c" ]
17+
18+
# install miniconda
19+
ENV MINICONDA_VERSION 4.12.0
20+
ENV CONDA_DIR /home/miniconda3
21+
ENV LATEST_CONDA_SCRIPT "Miniconda3-py38_$MINICONDA_VERSION-Linux-x86_64.sh"
22+
23+
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \
24+
bash ~/miniconda.sh -b -p $CONDA_DIR && \
25+
rm ~/miniconda.sh
26+
# RUN echo 'export PATH="~/miniconda/bin:$PATH"' >> ~/.bashrc
27+
ENV PATH=$CONDA_DIR/bin:$PATH
28+
RUN conda update conda
29+
30+
# chmod +x ~/miniconda.sh && \
31+
# ~/miniconda.sh -b -p $CONDA_DIR && \
32+
# rm ~/miniconda.sh
33+
34+
# # make non-activate conda commands available
35+
# ENV PATH=$CONDA_DIR/bin:$PATH
36+
# # make conda activate command available from /bin/bash --login shells
37+
# RUN echo ". $CONDA_DIR/etc/profile.d/conda.sh" >> /root/.profile
38+
# # make conda activate command available from /bin/bash --interactive shells
39+
# RUN conda init bash
40+
41+
# Install IBL port of pykilosort
42+
RUN git clone -b drift_test_stable https://github.com/kushbanga/pykilosort.git /src/pykilosort
43+
WORKDIR /src/pykilosort
44+
45+
# Create environment
46+
RUN conda env create -f pyks2.yml
47+
48+
# Install pykilosort
49+
SHELL ["conda","run","-n","pyks2","/bin/bash","-c"]
50+
# RUN conda install --quiet --yes ipykernel && \
51+
# python -m ipykernel install --user --name pyks2 --display-name "pyKilosort" && \
52+
RUN conda develop .
53+
54+
55+
56+

pykilosort/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker build -t spikeinterface/pykilosort:0.1.0 .

pykilosort/push.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker push -t spikeinterface/pykilosort:0.1.0 .

0 commit comments

Comments
 (0)