Skip to content

Commit c251cc4

Browse files
committed
Install pyks on base and cleanup
1 parent 82e4361 commit c251cc4

File tree

4 files changed

+12
-62
lines changed

4 files changed

+12
-62
lines changed

pykilosort/dockerfiles/Dockerfile renamed to pykilosort/Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,19 @@ WORKDIR /src/pykilosort
3636
RUN git remote add MouseLand https://github.com/MouseLand/pykilosort.git && \
3737
git fetch MouseLand && git checkout MouseLand/develop && git checkout -b develop
3838

39+
# modify env file so that env extends on base
40+
RUN sed -i "s/pyks2/base/" pyks2.yml
41+
3942
# Create environment
40-
RUN conda env create -f pyks2.yml
43+
RUN conda env update --name base --file pyks2.yml --prune
4144

4245
# Install pykilosort
43-
SHELL ["conda","run","-n","pyks2","/bin/bash","-c"]
4446
RUN conda install --quiet --yes ipykernel && \
45-
python -m ipykernel install --user --name pyks2 --display-name "pyKilosort" && \
47+
python -m ipykernel install --user --display-name "pyKilosort" && \
4648
conda develop .
4749

48-
WORKDIR /
50+
# install phylib from master because of read-only bug (https://github.com/cortex-lab/phylib/pull/35)
51+
RUN pip uninstall -y phylib && pip install git+https://github.com/cortex-lab/phylib.git
52+
53+
#--name pyks2
54+
WORKDIR /

pykilosort/build.sh

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

3-
docker build -t spikeinterface/pykilosort:latest -t spikeinterface/pykilosort:0.1.0 -f dockerfiles/Dockerfile .
3+
docker build -t spikeinterface/pykilosort-base:latest -t spikeinterface/pykilosort-base:0.1.0 .

pykilosort/dockerfiles/Dockerfile.testing

Lines changed: 0 additions & 56 deletions
This file was deleted.

pykilosort/push.sh

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

3-
docker push --all-tags spikeinterface/pykilosort
3+
docker push --all-tags spikeinterface/pykilosort-base

0 commit comments

Comments
 (0)