File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 .
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ docker push spikeinterface/kilosort3-base:0.1.0
You can’t perform that action at this time.
0 commit comments