Skip to content

Commit 70e8a94

Browse files
authored
Merge pull request #36 from vncntprvst/combinato
Combinato container
2 parents 14eb2db + bf22487 commit 70e8a94

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

combinato/Dockerfile

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

combinato/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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-base /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+
docker run --rm -it spikeinterface/combinato-base /bin/sh
14+
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-base:latest -t spikeinterface/combinato-base: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-base

0 commit comments

Comments
 (0)