Skip to content

Commit 5eaa742

Browse files
authored
Merge pull request #84 from SpikeInterface/ks4-update
Better logic to handle KS4 version and update to 4.0.30
2 parents e1b535b + 06073d3 commit 5eaa742

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

kilosort4/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ FROM nvidia/cuda:12.0.0-base-ubuntu20.04
22

33
LABEL maintainer="Alessio Buccino <alessiop.buccino@gmail.com>"
44

5+
ENV KILOSORT4_VERSION=4.0.30
6+
7+
58
# USER root
69
# Ubuntu package installs
710
RUN apt update && \
@@ -35,4 +38,4 @@ RUN conda init bash
3538
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
3639

3740
# install kilosort4
38-
RUN pip install kilosort==4.0.18
41+
RUN pip install kilosort==$KILOSORT4_VERSION

kilosort4/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22

3-
docker build -t spikeinterface/kilosort4-base:latest -t spikeinterface/kilosort4-base:4.0.18_cuda-12.0.0 .
3+
# Extract the KILOSORT4_VERSION from the Dockerfile
4+
KILOSORT4_VERSION=$(grep -E '^ENV KILOSORT4_VERSION=' "Dockerfile" | awk -F= '{print $2}' | tr -d '[:space:]')
5+
echo "Building kilosort4-base:$KILOSORT4_VERSION"
6+
7+
docker build -t spikeinterface/kilosort4-base:latest -t spikeinterface/kilosort4-base:${KILOSORT4_VERSION}_cuda-12.0.0 .

0 commit comments

Comments
 (0)