Skip to content

Commit ea776c6

Browse files
authored
Merge pull request #2 from SpikeInterface/kilosort3
add kilosort3 docker image
2 parents 8a0d3ca + 271eb5e commit ea776c6

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

kilosort3/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM magland/matlab_for_kilosort:0.1.0
2+
3+
#########################################
4+
### Python
5+
RUN apt update && apt -y install git wget build-essential
6+
RUN apt install -y python3 python3-pip
7+
RUN rm -f /usr/bin/python && ln -s python3 /usr/bin/python
8+
RUN rm -f /usr/bin/pip && ln -s pip3 /usr/bin/pip
9+
RUN DEBIAN_FRONTEND=noninteractive apt install -y python3-tk
10+
11+
RUN pip install numpy
12+
13+
# gcc-8 (cuda mex doesn't seem to work with gcc >8)
14+
RUN apt-get install -y gcc-8 g++-8 && ln -sf /usr/bin/gcc-8 /usr/bin/gcc && ln -sf /usr/bin/g++-8 /usr/bin/g++
15+
16+
# Clone the source code for kilosort3
17+
RUN mkdir -p /src && git clone https://github.com/MouseLand/Kilosort /src/Kilosort3 && cd /src/Kilosort3 && git checkout a1fccd9abf13ce5dc3340fae8050f9b1d0f8ab7a
18+
19+
# Note that the mex files are not actually compiled
20+
# I think you may need a license to do the compilation
21+
# Also, it may be important to compile on the machine
22+
# where the GPU hardware actually lives (not sure)
23+
24+
# Also note: it is probably better to run using
25+
# Singularity rather than docker because
26+
# Singularity handles gpu more seamlessly -
27+
# just add the --nv flag

kilosort3/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
# usually the tag would be the version of the sorter
4+
# but in this case since 3 is already in the name, maybe the tag should be 0.1.x
5+
docker build -t spikeinterface/kilosort3-base:0.1.0 .

kilosort3/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 spikeinterface/kilosort3-base:0.1.0

0 commit comments

Comments
 (0)