Skip to content

Commit 62b7871

Browse files
committed
working version
1 parent 4f928bb commit 62b7871

4 files changed

Lines changed: 58 additions & 0 deletions

File tree

combinato/Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM python:3.8
2+
3+
LABEL maintainer="Vincent Prevosto <prevosto@mit.edu>"
4+
5+
# Ubuntu package installs
6+
RUN apt update && \
7+
apt install -y --no-install-recommends \
8+
git && \
9+
apt clean && \
10+
rm -rf /var/lib/apt/lists/*
11+
12+
# Install dependencies
13+
RUN pip install \
14+
numpy \
15+
scipy \
16+
matplotlib \
17+
PyWavelets \
18+
tables \
19+
pyqt5 \
20+
ipython
21+
22+
# Clone Combinato
23+
WORKDIR /src
24+
RUN git clone https://github.com/jniediek/combinato.git
25+
26+
# Add Combinato repository to paths
27+
ENV COMBINATO_DIR /src/combinato
28+
ENV PATH=$PATH:$COMBINATO_DIR
29+
ENV PYTHONPATH=$PYTHONPATH:/usr/local/bin/python3:$COMBINATO_DIR
30+
RUN echo $' \n\
31+
PATH=$PATH:/src/combinato \n\
32+
PYTHONPATH=$PYTHONPATH:/usr/local/bin/python3:$COMBINATO_DIR \n\
33+
export PATH PYTHONPATH ' >> /root/.bashrc
34+
35+
# Install Combinato
36+
WORKDIR /src/combinato
37+
RUN python3 setup_options.py
38+
39+

combinato/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### Build this image
2+
Build default image:
3+
docker build -t combinato:latest .
4+
5+
### Run container in bash
6+
docker run --rm -it -v <host-data-folder>:<docker-data-folder> spikeinterface/combinato /bin/sh
7+
flags:
8+
--rm: removes container once it's stopped
9+
-it: for interactive session
10+
-v: mounted volumes (directories)
11+
12+
### Test
13+
python3 tools/test_installation.py

combinato/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/combinato:latest -t spikeinterface/combinato:0.1.0 .

combinato/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 --all-tags spikeinterface/combinato

0 commit comments

Comments
 (0)